[root@www httpd-2.4.3]#cp /usr/local/apache/bin/apachectl /etc/init.d/httpd
[root@www httpd-2.4.3]# vi /etc/init.d/httpd
[root@www httpd-2.4.3]# chkconfig --add httpd
[root@www httpd-2.4.3]# chkconfig --list | grep httpd
httpd 0:해제 1:해제 2:해제 3:해제 4:해제 5:해제 6:해제
[root@www httpd-2.4.3]# chkconfig httpd on
[root@www httpd-2.4.3]# chkconfig --list | grep httpd
httpd 0:해제 1:해제 2:활성 3:활성 4:활성 5:활성 6:해제
===========vi /etc/init.d/httpd 수정==============
#!/bin/sh
# chkconfig: 2345 90 90
# description: init file for Apache server daemon
# processname: /usr/local/apache/conf/httpd.conf
# config: /usr/local/apache/conf/httpd.conf
# pidfile: /usr/local/apache/logs/httpd.pid