關閉
service nginx stop
systemctl stop nginx
#啟動
service nginx start
systemctl start nginx
(推薦教學:nginx教學)
#重啟
service nginx reload
systemctl restart nginx
隨系統啟動自動運行
systemctl enable nginx
禁止隨系統啟動自動運行
systemctl disable nginx
以上是nginx關閉/重啟/啟動方法介紹的詳細內容。更多資訊請關注PHP中文網其他相關文章!