chkconfig Command Examples for Red Hat and CentOS Print

  • 85

View Full List of Services Using chkconfig

chkconfig --list


View Full List of Services That Start at Boot (Normally, Runlevel 3)

chkconfig --list | grep 3:on


Turn On a Service for the Default Run Levels (2,3,4,5)

chkconfig httpd on


Turn Off a Service for the Default Run Levels (2,3,4,5)

chkconfig httpd off


Turn On a Service for a Selected Run Level

chkconfig --level 3 httpd on


It is also possible to combine multiple levels into one command:

chkconfig --level 35 httpd on


Turn Off a Service for a Selected Run Level

chkconfig --level 3 httpd off


It is also possible to combine multiple levels into one command:

chkconfig --level 35 httpd off


Was this answer helpful?

« Back