1.安装
brew install nginx
或
sudo brew install nginx
2.启动
brew services start nginx
或者
sudo brew services start nginx
3.重启
brew services restart nginx
或者
sudo brew services restart nginx
4.停止
brew services stop nginx
或者
sudo brew services stop nginx
5.查看
cat usr/local/etc/nginx/nginx.conf
6.编辑
vi usr/local/etc/nginx/nginx.conf
- Post link: https://www.godhearing.cn/brew-an-zhuang-nginx/
- Copyright Notice: All articles in this blog are licensed under unless otherwise stated.