- 启动Nginx
brew services start nginx
- 关闭Nginx
brew services stop nginx
- 热更新Nginx
nginx -s reload
- 使用Homebrew安装Nginx
brew install nginx
- 查看nginx的配置信息,如下命令
brew info nginx
- 查看Nginx是否启动
ps -ef|grep nginx
brew services start nginx
brew services stop nginx
nginx -s reload
brew install nginx
brew info nginx
ps -ef|grep nginx