1、下载 apache(httpd) http://apache.etoak.com/httpd/httpd-2.4.6.tar.bz2 apr http://apache.etoak.com/apr/apr-1.4.8.tar.bz2 apr-util http://apache.etoak.com/apr/apr-util-1.5.2.tar.bz2 pcre ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.bz2(pcre.org) 2、解压 tar xjf ./httpd-2.4.6.tar.bz2 tar xjf ./apr-1.4.8.tar.bz2 tar xjf ./apr-util-1.5.2.tar.bz2 tar xjf ./pcre-8.33.tar.bz2 3、安装 进入apr-1.4.8 ./configure –prefix=/usr/local/apr make make install 进入apr-util-1.5.2 ./configure –prefix=/usr/local/apr-util make make install 进入pcre-8.33 ./configure –prefix=/usr/local/pcre make make install 进入 httdp-2.4.6 ./configure –prefix=/usr/local/apache –with-apr=/usr/local/apr –with-apr-util=/usr/local/apr-util –with-pcre=/usr/local/pcre –enable-so –enable-modules=all make make install 将服务加到/etc/rc.d/rc.local中 vi /etc/rc.d/rc.local 添加以下内容 /usr/local/apache/bin/apachectl start
“各等级”包括2、3、4、5等级 4、其它 系统要安装好gcc (责任编辑:IT) |