MAC tips
in 随便写写 with 0 comment

MAC tips

in 随便写写 with 0 comment

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
Responses