MacOS Mojave 系统 - Vagrant nfs export 问题 和 字体变得超细 的解决方案
如果你最近升级了 Mac 系统,在运行 homestead up 的时候遇到如下的错误:
tee: /etc/exports: Operation not permitted
tee: /etc/exports: Operation not permitted
tee: /etc/exports: Operation not permitted
The nfsd service does not appear to be running.
Starting the nfsd service
==> homestead-7: 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 vers=3,udp,actimeo=1,nolock 192.168.10.1:/Users/***/*** /home/vagrant/***
Stdout from the command:
Stderr from the command:
mount.nfs: Connection timed out
解决方案请参考这个链接:https://github.com/hashicorp/vagrant/issue...
也就是确保以下的权限设置:
如果你发现系统的字体变得 super thin,比如 VS Code 里,请在命令行终端里运行:defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO
重启command+R
打开终端 运行:
csrutil disable
重启电脑,也能解决
Mac 下面为何不用 Valet
@vasar
也就 developer 会 disable 掉 System Integrity Protection :smile: 其实它毕竟多一层安全保护。
解决方法很赞