2015/10/11

CentOS 7.0 systemctl

#不在開機啟動服務
systemctl disable ServiceName

#開機啟動服務
systemctl enable ServiceName

#停止服務
systemctl stop ServiceName

#啟動服務
systemctl start ServiceName

#重啟服務
systemctl restart ServiceName

#ex:不再開機關閉防火牆
systemctl disable firewalld

#ex:停止防火牆
systemctl stop firewalld