啓動服務
啓動 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