TECHIES WORLD

For Techs.... Techniques.... Technologies....

CpanelLinux

Systemctl Command in Centos7

service command replaced by systemctl command in Centos7

To Check the status of a service,

#systemctl status servicename.service
OR
#systemctl status servicename.service

To restart a service,

#systemctl restart servicename.service
OR
#systemctl restart servicename

To stop a service,

#systemctl start servicename.service
OR
#systemctl start servicename

To start a service,

#systemctl stop servicename.service
OR
#systemctl stop servicename

chkconfig command also replaced by systemctl command in Centos7

Enable a serice to run on start up,

#systemctl enable servicename

Disable a serice to run on start up,

#systemctl disable servicename

Leave a Reply