xcode-select --install
关闭mac自带apache的启动:
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
如果哪天你想让它开机启动了,则将unload 改为 load:
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist