加载开机自启动
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
禁用开机自启动
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
其他
另外有Apache开启、关闭、重启的方法:
- 开启
sudo apachectl start - 关闭
sudo apachectl stop - 重启
sudo apachectl restart
来源:https://www.cnblogs.com/peretdressing/p/12303042.html