本文介绍了流浪汉卡在nfs上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试启动无用功"时,脚本将按常规执行,直到到达安装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:

  1. 检查/etc/exports/etc/hosts文件,如果文件中有无效条目,请将其删除.
  2. 检查您的防火墙没有阻止访问
  3. 重新启动NFS系统
  4. 安装vagrant plugin install vagrant-vbguest插件
  5. 执行vagrant reload --provision
  6. 重新启动电脑
  7. 重新安装无业游民
  1. Check /etc/exports and /etc/hosts files, if there are invalid entries in file, remove them.
  2. Check your firewall is not blocking access
  3. Restart NFS system
  4. install vagrant plugin install vagrant-vbguest plugin
  5. do vagrant reload --provision
  6. Reboot your pc
  7. Reinstall vagrant

对我来说,重新安装无业游民的工作.

For me reinstalling vagrant worked.

这篇关于流浪汉卡在nfs上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 16:17