當前位置:科普知識站>IT科技>

怎麼重啓nginx

IT科技 閱讀(2.86W)

產品型號: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