本篇博客在mac系统上使用brew安装nginx,没有安装brew可以参考我的上上篇博客。
1.安装nginx
brew install nginx
2. 查看nginx版本
nginx -v
3.进入nginx安装目录
/usr/local/Cellar/nginx/1.19.1
4.启动nginx
nginx
5.访问8080端口
http://localhost:8080/
6.停止nginx
nginx -s stop
本篇博客在mac系统上使用brew安装nginx,没有安装brew可以参考我的上上篇博客。
1.安装nginx
brew install nginx
2. 查看nginx版本
nginx -v
3.进入nginx安装目录
/usr/local/Cellar/nginx/1.19.1
4.启动nginx
nginx
5.访问8080端口
http://localhost:8080/
6.停止nginx
nginx -s stop