mac下用vagrant的权限报错问题

技术文章 2020年9月27日 4.57K

之前写过一篇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的这行然后重启即可。


关注微信公众号『PHP学习网

第一时间了解最新网络动态
关注博主不迷路~

版权声明:转载请注明 PHP学习网 » mac下用vagrant的权限报错问题
分享到:
赞(1)

文章评论

您需要之后才可以评论
1点赞 0评论 收藏 QQ分享 微博分享

PHP学习网

PHP学习网