1
2
3
4
|
./configure —prefix=/usr/local/httpd–2.2.17 —enable–mods–shared=all —enable–so —enable–rewrite —enable–ssl —with–ssl
make && make install
cp /usr/local/httpd–2.2.17/bin/apachectl /etc/init.d/httpd
chkconfig —add httpd
|
httpd 서비스는 chkconfig를 지원하지 않습니다.
]# vi /etc/init.d/httpd 아래 내용을 추가한다.
# chkconfig: 2345 90 90
# description: init file for Apache server daemon
# processname: /usr/local/httpd-2.2.17/bin/apachectl
# config: /usr/local/httpd-2.2.17/conf/httpd.conf
# pidfile: /usr/local/httpd-2.2.17/logs/httpd.pid