问题描述
当我尝试启动无用功"时,脚本将按常规执行,直到到达安装NFS共享驱动器的最后一行为止.
When I attempt to initiate 'vagrant up' the script executes as normal until it gets to the last line, where NFS shared drives are mounted.
我尝试删除/etc/中的导出文件,然后重新启动nfsd并无所事事地破坏/无所事事,但无济于事.
I have tried deleting the exports file in /etc/ followed by a nfsd restart and vagrant destroy / vagrant up but to no avail.
一段时间后,控制台将输出以下[已删除的某些详细信息]:
After some considerable amount of time the console outputs the following [certain details redacted]:
*==> 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 'nolock,vers=3,udp,noatime' XXX.XXX.XX.X:'/Users/dhatton/Google Drive/moodle-doodle/site' /var/www/site*
*Stdout from the command:*
*Stderr from the command:*
*mount.nfs: Connection timed out*
UPDATE
UPDATE
在办公室网络中使用VPN时遇到上述问题.在没有VPN的情况下现场登录后,一切都会恢复正常.
The above problem was encountered when using a VPN into the office network. Upon logging in on-site without the VPN, everything works again.
推荐答案
我遇到了类似的问题.我进行了很多搜索,并尝试了以下解决方案:
I had similar issue. I searched a lot, and tried following solutions:
- 检查
/etc/exports
和/etc/hosts
文件,如果文件中有无效条目,请将其删除. - 检查您的防火墙没有阻止访问
- 重新启动NFS系统
- 安装
vagrant plugin install vagrant-vbguest
插件 - 执行
vagrant reload --provision
- 重新启动电脑
- 重新安装无业游民
- Check
/etc/exports
and/etc/hosts
files, if there are invalid entries in file, remove them. - Check your firewall is not blocking access
- Restart NFS system
- install
vagrant plugin install vagrant-vbguest
plugin - do
vagrant reload --provision
- Reboot your pc
- Reinstall vagrant
对我来说,重新安装无业游民的工作.
For me reinstalling vagrant worked.
这篇关于流浪汉卡在nfs上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!