Site icon VipsPatel

chkconfig Command Examples for Red Hat and CentOS

chkconfig is a command for checking and updating runlevel information for system services. For a primer on runlevels, check out our tutorial: Linux Runlevels Explained.

Pre-Flight Check

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

Want to Try This Tutorial?

Launch a Free* Storm Server

*For new customers only

<!– –><!– –>

Thank you. Your request has been submitted and we’ll be sending you a $75 Storm coupon shortly!

Exit mobile version