Linux命令(007) -- systemctl
生活随笔
收集整理的這篇文章主要介紹了
Linux命令(007) -- systemctl
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
systemctl命令是系統服務管理指令,它實際上是將service和chkconfig兩個命令組合到一起。
| 任務 | 舊指令 | 新指令 |
| 使某服務自動啟動 | chkconfig --level 3 httpd on | systemctl enable httpd.service |
| 使某服務不自動啟動 | chkconfig --level 3 httpd off | ystemctl disable httpd.service |
| 檢查某服務狀態 | service httpd status | systemctl status httpd.service(顯示服務詳細信息) systemctl is -active httpd.service(僅顯示是否Active) |
| 顯示所有已啟動的服務 | chkconfig --list | systemctl list-units --type=service |
| 啟動某服務 | service httpd start | systemctl start httpd.service |
| 停止某服務 | service httpd stop | systemctl stop ?httpd.service |
| 重啟某服務 | service httpd restart | systemctl restart httpd.service |
轉載于:https://www.cnblogs.com/sunmengbbm/p/5671977.html
總結
以上是生活随笔為你收集整理的Linux命令(007) -- systemctl的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [DP] LGTB 玩THD (复杂状态
- 下一篇: string to byte[]