mac 下nginx加入开机启动

通过brew install nginx后设置开机启动项

sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist

posted @ 2016-04-08 13:27  daly2008  阅读(4481)  评论(2编辑  收藏  举报