service nginx stop systemctl stop nginx
service nginx start systemctl start nginx
service nginx reload systemctl restart nginx
systemctl enable nginx
systemctl disable nginx
知識點擴充:
先利用設定檔啟動nginx。指令:
nginx -c /usr/local/nginx/conf/nginx.conf
重啟服務: service nginx restart
\1. 快速停止或關閉Nginx:nginx -s stop
\2. 正常停止或關閉Nginx:nginx -s quit
\3. 設定檔修改重裝載指令:nginx -s reload
以上是nginx怎麼關閉、重新啟動、和啟動的詳細內容。更多資訊請關注PHP中文網其他相關文章!