I am running CentOS which has Apache installed. It automatically starts up (script is in /etc/init.d). Since this is a standalone database server, I have no need for Apache to be running. How do I disable the startup? Just delete the file in /etc/init.d?
Linux – Disable Apache Automatic Startup on Linux
apache-2.2centoslinux
Related Topic
- Linux – Changing startup parameters for MySQL
- Linux – Ubuntu/Linux: how are startup parameters typically defined for startup scripts (sysvinit)
- Linux Web Server – Proper Permissions for Website Files and Folders
- Linux – High Server Crash Rates During Leap Second Day
- Centos – Permanently Disable Init Service
- Ubuntu – Binding a php script with a apache startup script
Best Answer
# chkconfig <servicename> off
Then to verify:
chkconfig --list | grep <servicename>
So probably
chkconfig httpd off
, you want to go read about runlevels inman init
. The verification should returnhttpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
. If you want to stop it without restarting run/etc/init.d/httpd stop
. All of these will need to be done with root privileges.