Linux下Apache安装小记

下载Apache FOR Linux到任意目录
# wget http://apache.mirror.phpchina.com/httpd/httpd-2.2.6.tar.gz

安装
# tar zxvf httpd-2.2.6.tar.gz
# cd httpd-2.2.6
#./configure --prefix=/usr/ali/apache2 --enable-so
# make
# make install
# make clean

系统启动时自动加载Apache
# cp /usr/ali/apache2/bin/apachectl /etc/rc.d/init.d/httpd
# cd /etc/rc.d/rc3.d
# ln –s ../init.d/httpd S80httpd

相关推荐