Mac 設置 nginx 開機啓動

Mac brew 安裝 nginx 設置 nginx 開機啓動nginx

 

mkdir -p ~/Library/LaunchAgentshomebrew

cp /usr/local/Cellar/nginx/ nginx版本 /homebrew.mxcl.nginx.plist ~/Library/LaunchAgents/di

launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.nginx.plistsudo

sudo chown root:wheel /usr/local/Cellar/nginx/1.10.1/bin/nginx版本

sudo chmod u+s /usr/local/Cellar/nginx/1.10.1/bin/nginx

相關文章
相關標籤/搜索