nginx 關閉方法:1) 使用 systemctl:sudo systemctl stop nginx;2) 使用 service:sudo service nginx stop;3) 使用 supervisorctl:sudo supervisorctl stop nginx;4) 手動關閉:nginx -s quit。
如何關閉 Nginx
Nginx 是一種流行的 Web 服務器,可以通過以下步驟關閉:
方法 1:使用 systemd
sudo systemctl stop nginx
方法 2:使用 init.d
sudo service nginx stop
方法 3:使用 Supervisor
sudo supervisorctl stop nginx
方法 4:手動關閉
如果上述方法不起作用,可以使用以下命令:
nginx -s quit
注意:在 centos 7 中,Nginx 可能沒有 systemd 服務文件。在這種情況下,請使用 init.d 方法。
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載。
THE END