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

  • 41 Users Found This Useful
Was this answer helpful?

Related Articles

How to Disable SSLv3 for Exim and Protect Your WHM/cPanel Server from POODLE

There’s a new POODLE in town, but unfortunately it’s not the kind of pooch you want around....

How to List Which Apache Modules are Enabled on Ubuntu

The Apache web server is one of the most popular and powerful web servers in the world due to its...

Error: Failed to connect to ’127.0.0.1:7199′: Connection refused (Cassandra) [SOLVED]

Error While Using Cassandra’s ‘nodetool’ This error may occur when using the ‘nodetool’ command,...

Update and Patch OpenSSL on CentOS for the CCS Injection Vulnerability

What is OpenSSL? OpenSSL is a common cryptographic library which provides encryption,...

How to Upgrade MySQL 5.1 to MariaDB 10.0 on CentOS 6

Step #1: Upgrade from MySQL 5.1 to MariaDB 5.5 The proper upgrade path from MySQL 5.1 to MariaDB...

Powered by WHMCompleteSolution