Linux下systemctl命令簡單使用

Linux 科技 AnyTopOne 2017-04-07

Linux下systemctl命令簡單使用

1、查看正在運行的服務

systemctl

2、啟動服務

systemctl start foo.service

3、關閉服務

systemctl stop foo.service

4、重啟服務

systemctl restart foo.service

5、查看一個服務的狀態

systemctl status foo.service

6、開機時自動啟動服務

systemctl enable foo.service

7、開機時不啟動服務

systemctl disable foo.service

8、查看服務是否開機自動啟動

systemctl is-enabled foo.service

相關推薦

推薦中...