1. 程式人生 > >mac nginx 自啟動

mac nginx 自啟動

brew 命令 str 實現 mac nginx ros size font all

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 自啟動