MAC tips

1.更新loacte库

1
sudo /usr/libexec/locate.updatedb

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

1
2
3
4
5
6
7
8
9
10
11
12
13
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.开启转发:

1
sysctl -w net.inet.ip.forwarding=1

------本文结束,感谢阅读------

0%