1.安裝
brew install nginx
2.常用命令
命令 | 描述 |
---|---|
brew services list | List all running services for the current user |
brew services start nginx | 啟動(dòng) |
brew services stop nginx | 快速停止或關(guān)閉 |
brew services restart nginx | 重新啟動(dòng) |
brew services reload nginx | 配置文件修改重裝載 |
3.配置文件
/usr/local/etc/nginx/nginx.conf