IT科技

當前位置 /首頁/IT科技 > /列表

重啓nginx的方法

產品型號:Thinkpad E15

系統版本:centos8

nginx重啓方法

通過yum安裝的nginx服務可以直接通過systemctl管理服務

[root@xuegod63 ~]# systemctl restart nginx

平滑重啓,動態加載配置文件,不影響服務的正常運行。

[root@xuegod63 ~]# nginx -s reload

重啓nginx的方法

總結:

1.nginx重啓方法1: systemctl restart nginx

2.nginx重啓方法2: nginx -s reload

TAG標籤:方法 方式 nginx 重啓 #