nginx常用命令

2022-07-03 05:18:12 字數 661 閱讀 3067

#

設定nginx.service為系統服務

systemctl enable nginx.service

##通過系統服務操作nginx

systemctl start nginx.service

systemctl reload nginx.service

systemctl restart nginx.service

systemctl stop nginx.service

驗證配置是否正確:nginx -t

檢視nginx的版本號:nginx -v

啟動nginx:start nginx

快速停止或關閉nginx:nginx -s stop

正常停止或關閉nginx:nginx -s quit

配置檔案修改重裝載命令:nginx -s reload

#

# 解壓nginx-1.14.0.tar.gz到/usr/local/目錄下

tar -zxvf nginx-1.14.0.tar.gz -c /usr/local/

nginx常用命令

root ta30 53 nginx pwd usr local nginx root ta30 53 nginx sbin nginx root ta30 53 nginx sbin nginx s stop root ta30 53 nginx sbin nginx s quit s都是採用向 ...

nginx 常用命令

poechant ubuntu sudo sbin nginxpoechant ubuntu sudo sbin nginx s stop poechant ubuntu sudo sbin nginx s quit s都是採用向 nginx 傳送訊號的方式。poechant ubuntu sudo...

Nginx常用命令

usr local nginx sbin nginx t或 usr local nginx sbin t c usr local nginx conf nginx.conf檢測結果會提示配置檔案 出現了錯誤,出現success說明檔案正確。顯示版本資訊可以用 usr local nginx sbin...