mac nginx 自启动:
通过brew install nginx命令安装的nginx实现自启动可执行如下命令:
sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
执行完毕,重启mac即可
mac nginx 自启动:
通过brew install nginx命令安装的nginx实现自启动可执行如下命令:
sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
执行完毕,重启mac即可
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。