通过brew 安装install 后
sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
即可。
参考文章:http://derickbailey.com/2014/12/27/how-to-start-nginx-on-port-80-at-mac-osx-boot-up-log-in/
本文详细介绍了如何通过Homebrew安装NGINX并设置其在Mac OS X启动时自动运行,包括使用brew命令进行安装、复制配置文件到LaunchDaemons目录、加载配置文件以及启动NGINX服务。

1万+

被折叠的 条评论
为什么被折叠?



