1.更新loacte库

sudo /usr/libexec/locate.updatedb 

2.macport跟homebrew不兼容。
卸载macport:

sudo port -f uninstall installed
sudo port clean all
sudo rm -rf \
/opt/local \
/Applications/DarwinPorts \
/Applications/MacPorts \
/Library/LaunchDaemons/org.macports.* \
/Library/Receipts/DarwinPorts*.pkg \
/Library/Receipts/MacPorts*.pkg \
/Library/StartupItems/DarwinPortsStartup \
/Library/Tcl/darwinports1.0 \
/Library/Tcl/macports1.0 \
~/.macports

3.开启转发:

sysctl -w net.inet.ip.forwarding=1
最后由 Evi1cg 编辑于2017年01月17日 15:57