天天看點

centOS開啟關閉服務,檢視設定開機自啟動,systemctl 工具使用

systemctl是CentOS7的服務管理工具中主要的工具,它融合之前service和chkconfig的功能于一體。

以firewalld.service為例

啟動一個服務:systemctl start firewalld.service

關閉一個服務:systemctl stop firewalld.service

重新開機一個服務:systemctl restart firewalld.service

顯示一個服務的狀态:systemctl status firewalld.service

繼續閱讀