Ubuntu查看nginx服務狀態和啓動nginx服務

// 查看狀態
$ sudo systemctl status nginx.service

// 開啓 nginx 服務
$ sudo systemctl start nginx.service

// 重啓服務
$ sudo systemctl restart nginx.service

// 查看所有服務
$ sudo systemctl list-units --type=service

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章