Apache
在编译httpd前需要安装的依赖包 apr apr-util pcre
首先下载apr
wget http://mirror.bit.edu.cn/apache//apr/apr-1.5.2.tar.gz
tar -zxvf apr-1.5.2.tar.gz
cd /apr-1.5.2
./configure --prefix=/usr/local/apr
make
make install
然后下载apr-util
wget http://mirror.bit.edu.cn/apache//apr/apr-util-1.5.4.tar.gz
tar -zxvf apr-util-1.5.4.tar.gz
cd /apr-util-1.5.4
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
make install
再下载pcre
wget https://sourceforge.net/projects/pcre/files/pcre/8.38/pcre-8.38.tar.gz/download
tar -zxvf pcre-8.38.tar.gz
cd /pcre-8.38
./configure --prefix=/usr/local/pcre
make
make install
最后下载httpd
wget http://archive.apache.org/dist/httpd/httpd-2.2.24.tar.gz
tar -zxvf httpd-2.2.24
./configure --prefix=/usr/local/httpd2.2 --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
make
make install
启动httpd服务
/usr/local/httpd2.2/bin/httpd start
您还未添加分享代码,请到主题选项中,添加百度分享代码!
您可以选择一种方式赞助本站
支付宝转账赞助
支付宝扫一扫赞助
微信钱包扫描赞助