1:安装
sudo brew install nginx
2:查看版本
nginx -v
3:安装目录
/usr/local/etc/nginx
4:启动
cd /usr/local/etc
sudo nginx
5:验证;默认端口是8080
http://localhost:8080
6:可以修改他的配置文件,然后重启;
sudo nginx -s reload
7:停止
sudo nginx -s quit
1:安装
sudo brew install nginx
2:查看版本
nginx -v
3:安装目录
/usr/local/etc/nginx
4:启动
cd /usr/local/etc
sudo nginx
5:验证;默认端口是8080
http://localhost:8080
6:可以修改他的配置文件,然后重启;
sudo nginx -s reload
7:停止
sudo nginx -s quit