#啓動一個服務
systemctl start postfix.service
#關閉一個服務
systemctl stop postfix.service
#重啓一個服務
systemctl restart postfix.service
#顯示一個服務的狀態
systemctl status postfix.service
#在開機時啓用一個服務
systemctl enable postfix.service
#在開機時禁用一個服務
systemctl disable postfix.service
#查看服務是否開機啓動
systemctl is-enabled postfix.service
#查看已啓動的服務列表
systemctl list-unit-files|grep enabled
#查看啓動失敗的服務列表
systemctl --failed
#重新加載service文件
systemctl daemon-reload
systemctl簡單用法
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
SpringBoot 填坑 (一) | CentOS7.4 環境下,表時間字段默認值設置失效
一個優秀的廢人
2019-02-24 15:33:55
Error response from daemon: OCI runtime create failed
uiz
2019-02-24 13:44:10
CentOS7更換yum源
駙馬葉子
2019-02-23 20:02:48
原來實現GCP用客戶端登錄這麼簡單啊
simon
2019-02-23 17:42:51
Linux 服務器常見報錯
zinejo
2019-02-23 13:50:26
VMware centos6.5克隆網卡配置
張斌66
2019-02-23 13:44:28
Rhel5利用centos5 yum 源及第三方軟件倉庫
jfchl
2019-02-23 13:35:33
CentOS6 配置源及安裝常用軟件
loip125
2019-02-23 13:29:06
CentOS下部署Spacewalk
soda119
2019-02-23 13:17:03
centos使用命令行測試網絡帶寬
braoshan
2019-02-23 13:15:20
redhat中設置環境變量PATH的方法
410502505
2019-02-23 13:09:08
CentOS 6 系統優化 Shell 腳本
冰魚客
2019-02-23 00:43:08
U盤安裝Centos後拔除U盤無法啓動問題解決方法
Allon_
2019-02-23 00:40:03
源碼編譯安裝LNMP
coolner
2019-02-23 00:39:39
centos使用yum安裝gcc
xunmengaa
2019-02-23 00:34:23