作者:zxy寒 | 来源:互联网 | 2017-11-05 22:41
#tarzxvfhttpd-2.2.15.tar.gz#cdhttpd-2.2.15#.configure--prefixusrlocalapach2.2--enable-modulemost--enable-proxy--enable-proxy-ajp--enable-forward--enable-proxy-connect--enable-proxy-http--enable-so--en
# tar zxvf httpd-2.2.15.tar.gz
# cd httpd-2.2.15
# ./configure --prefix=/usr/local/apach2.2 --enable-module=most --enable-proxy --enable-proxy-ajp --enable-forward --enable-proxy-connect --enable-proxy-http --enable-so --enable-deflate --enable-headers --enable-include
# make
# make install
# cd /usr/local/apach2.2/bin
# apachectl -k start
# apachectl -k stop
# cp /usr/local/apach2.2/bin/apachectl /etc/init.d/httpd
# vi /etc/init.d/httpd
#!/bin/sh
# chkconfig: 345 61 61
# description:Apache httpd
……
|
# chkconfig --add httpd
# service httpd start