Linux .下Apache的安装

centos 5.8系统下安装Apache。

1、首先到官网下载Apache,即是HTTP Server,下载要安装的相应版本即可。

2、解压后,直接./configure 配置,会发现依赖apr、apr-util、pcre。

APR not found
APR-util not found

3、下载相应gz文件后,解压安装。

4、

#./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre/bin/pcre-config  【配置】
#make  【编译】
#make install 【安装】

 5、Apache安装完成后,启动服务,输入127.0.0.1,页面显示“it works“证明安装成功。

猜你喜欢

转载自bakcom.iteye.com/blog/1874379