之前写过一篇mac同步vagrant程序时,权限并没有对应的同步过去,可以查看文章https://www.viphper.com/3684.html 之前用的好好的,突然有天报错了,奇葩不奇葩,然后通过各种查资料终于修复好了,下面将修复的过程记录下来。
先看看报错吧
启动时会报这个错误
NFS is reporting that your exports file is invalid. Vagrant does
this check before making any changes to the file. Please correct
the issues below and execute “vagrant reload”:
出现这个错误先不要慌,看看下面的错误,我这个是提示下面的错误
can’t get physical path for /web/spider
Can’t allocate memory to add export path: /web/spider
can’t get physical path for /web/spider
exports:2: Can’t allocate memory to add directory: /web/spider
这个表示有个/web/spider的路径不对,需要调整才可以启动。
解决办法:打开 sudo vim /etc/exports 删掉 /web/spider的这行然后重启即可。