chkconfig Command Examples for Red Hat and CentOS

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

  • 85 Users Found This Useful
Was this answer helpful?

Related Articles

How to List Compiled PHP Modules from Command Line

Pre-Flight Check These instructions are intended specifically for listing compiled PHP modules...

How to Install or Uninstall PECL Extensions

Pre-Flight Check These instructions are intended specifically for installing or uninstalling...

How to Install the MongoDB PHP Driver (Extension) on CentOS 6

Step 1: Setup Environment, Install PHP Extension & Application Repository (PEAR) As a matter...

How to Add a User and Grant Root Privileges on CentOS 6.5

Step 1: Add the User It’s just one simple command to add a user. In this case, we’re...

How to Add a User and Grant Root Privileges on Ubuntu 14.04

Step 1: Add the User It’s just one simple command to add a user. In this case, we’re...