- 查看运行状态:
sudo systemctl status nginx
- 停止并启动Nginx
sudo systemctl stop nginx
- Nginx重启
sudo systemctl reload nginx
注意:Nginx未激活不能进行重启 - Nginx强制重启
sudo systemctl restart nginx
- Nginx重新加载-
sudo nginx -s reload
- Nginx退出
sudo nginx -s quit
原创文章,作者:306829225,如若转载,请注明出处:https://blog.ytso.com/278417.html