Do you ever wonder that how to setup CentOS (RedHat) Linux server startup service and how the services running?
With CentOS, you may use the command named chkconfig to configure your startup services.
First of all, you need to understand what is Linux runlevels, for more information, you may refer to the URL below,
In this example, let say we could like to set the runlevel at 2, 3, and 5 with httpd (Apache).
To enable the services in startup,
# chkconfig httpd --add # chkconfig httpd on --level 235
To check which runlevel you have set,
# chkconfig --list httpd
To disable the startup,
# chkconfig httpd off