Centos7 查詢開機啓動項服務

Supervisor 啓動dotnet報錯:can't find command 'dotnet' 文章中說到檢查開機啓動服務,就順便開個帖子,把查詢方式貼給大家:
1.systemctl list-unit-files 查看啓動項
左邊是服務名稱,右邊是狀態,enabled是開機啓動,disabled是開機不啓動

 2.systemctl list-unit-files | grep {enabled|disable|static}  過濾查看啓動項,未啓動項,靜態項

   我用 systemctl list-unit-files | grep enabled 做例樣

 

 3.systemctl list-unit-files | grep supervisord 過濾查看某服務名

 

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