mac nginx 自启动

通过brew install nginx命令安装的nginx实现自启动可执行如下命令:

1

2

sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons

sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist

执行完毕,重启mac即可
posted @ 2018-08-24 11:03  丁晓超  阅读(411)  评论(0编辑  收藏  举报