centos5.4下 apache2.4.3 安装笔记
去官方下载最新版 的apache 2.43 ,地址我就不给了,自己找去哦,不难的# tar zxvf httpd-2.4.2.tar.gz
# cd httpd-2.4.2
# ./configure prefix=/usr/local/apache-2.4.3--enable-so --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/uar/local/pcre
最后面提示:
checking for APR... no
configure: error: APR not found.Please read the documentation.
下载安装
http://apr.apache.org/download.cgi=>http://mirror.bjtu.edu.cn/apache//apr/apr-1.4.6.tar.gz
tar zxvf apr-1.4.6.tar.gz
cd apr-1.4.6
./configure
make && make install
cd ../
继续安装apache
最后面提示:
checking for APR-util... no
configure: error: APR-util not found.Please read the documentation.
下载安装
http://apr.apache.org/download.cgi=>http://mirror.bjtu.edu.cn/apache//apr/apr-util-1.4.1.tar.gz
(http://mirror.bjtu.edu.cn/apache//apr/apr-iconv-1.2.1.tar.gz)
tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure --with-apr=/usr/local/apr
make && make install
cd ../
继续安装apache
最后面提示:
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
下载安装 pcrehttp://pcre.org==>ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.30.tar.gz
tar zxvf pcre-8.30.tar.gz
cd pcre-8.30
./configure --with-apr=/usr/local/apr
make && make install
cd ../
再次安装apache
./configure prefix=/usr/local/apache-2.4.3--enable-so --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/uar/local/pcre
make && make install
#启动
#/usr/local/httpd-apache/bin/apachectl start
# netstat -utl
#然后打开浏览器,输入“http://localhost”
#出现“It Works!”
安装成功~~!
我抢、我抢、我抢沙发~ 帮帮顶顶!! 下雨了,别忘了打伞,湿身是小,淋病就麻烦啦*^_^* 所有的男人生来平等,结婚的除外。 只有假货是真的,别的都是假的! 天塌下来你顶着,我垫着!
页:
[1]