启动服务
启动 nginx 服务:
sudo nginx
1
重启 nginx 服务:
sudo nginx -s reload
1
停止 nginx 服务:
sudo nginx -s stop
1
检查配置文件是否存在语法错误:
sudo nginx -t
1
访问地址:
- http:
http://localhost:8089
- https:
https://localhost
启动 nginx 服务:
sudo nginx
1
重启 nginx 服务:
sudo nginx -s reload
1
停止 nginx 服务:
sudo nginx -s stop
1
检查配置文件是否存在语法错误:
sudo nginx -t
1
访问地址:
http://localhost:8089
https://localhost