mac vagrant php,mac下用vagrant的权限报错问题

之前写过一篇mac同步vagrant程序时,权限并没有对应的同步过去,可以查看文章https://www.viphper.com/3684.html  之前用的好好的,突然有天报错了,奇葩不奇葩,然后通过各种查资料终于修复好了,下面将修复的过程记录下来。

先看看报错吧

ff659d7d1127d34b2a501c11d3cb85cf.png

启动时会报这个错误

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的这行然后重启即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值