nginx
1.mac下使用brew即可
brew install nginx
2.使用sudo nginx 啓動
訪問localhost:8080 即可看到nginx的歡迎頁面
3.使用
#重新加載配置|重啓|停止|退出 nginx
nginx -s reload|reopen|stop|quit
#測試配置是否有語法錯誤
nginx -t
4.設置開機啓動
ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist