osx – 无法挂载带有nfs的vagrant同步文件夹
发布时间:2021-03-30 20:30:06 所属栏目:Linux 来源:互联网
导读:我设法在ubuntu流氓盒子里安装了我的Symfony2项目.但是通过它的网络服务器来加载网站需要20秒左右的时间.经过一番研究,我想出了使用nfs的同步文件夹.这是我从Vagrantfile的设置: config.vm.network private_network, ip: 192.168.56.101config.vm.synced_fol
|
我设法在ubuntu流氓盒子里安装了我的Symfony2项目.但是通过它的网络服务器来加载网站需要20秒左右的时间.经过一番研究,我想出了使用nfs的同步文件夹.这是我从Vagrantfile的设置: config.vm.network "private_network",ip: "192.168.56.101" config.vm.synced_folder ".","/vagrant",:nfs => true,:mount_options => ["dmode=777","fmode=777"] 启动de vagrant盒后,我得到以下错误 ==> default: Mounting NFS shared folders... The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mount -o 'dmode=777,fmode=777' 192.168.56.1:'/Users/marcschenk/Projects/teleboy.ch' /vagrant Stdout from the command: Stderr from the command: stdin: is not a tty mount.nfs: an incorrect mount option was specified VM似乎工作,但同步的文件夹显然是空的.我错了什么? 我的设置: > Vagrant 1.6.5& Virtualbox 4.3.18 解决方法找到解决问题的这个 https://github.com/mitchellh/vagrant/issues/2546vagrant版本1.3到1.6的正确语法是: config.vm.synced_folder ".",:nfs => { :mount_options => ["dmode=777","fmode=777"] } (编辑:长春站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐
- linux – 是否可以在docker容器中安装ISO?
- Linux上没有GUI的Fortinet SSL VPN客户端安装(ce
- 为什么/usr/include/linux/stddef.h为空?
- linux – SETENV:Bad:$($)中的修饰符
- linux – 从磁盘读取单个扇区
- Linux apach生成Https链接(自定义签名)
- 如何在使用gcsfuse创建的Linux中卸载Google Buck
- linux – dhclient:“RTNETLINK回答:文件存在”
- linux – 将runit与monit结合使用有什么意义?
- ruby-on-rails – git post-receive hook没有运行
热点阅读
