安装说明
安装前提
#检查是否安装了apache [root@localhost /]# rpm -qa | grep httpd httpd-2.2.15-15.el6.centos.1.x86_64 httpd-tools-2.2.15-15.el6.centos.1.x86_64 #卸载系统自带的apache [root@localhost /]# rpm -e --nodeps httpd-2.2.15-15.el6.centos.1.x86_64 [root@localhost /]# rpm -e --nodeps httpd-tools-2.2.15-15.el6.centos.1.x86_64 #使用yum卸载 [root@localhost apache]# yum remove apache
#检验apr版本,卸载安装新版本
#安装新版本apr
#安装apr-util
安装apache
#执行安装 [root@localhost local]# cd /usr/local [root@localhost local]# tar -zxv -f httpd-2.4.3.tar.gz #解压压缩包 [root@localhost local]# rm -rf httpd-2.4.3.tar.gz #删除压缩包 [root@localhost local]# mv httpd-2.4.3 apache [root@localhost local]# cd apache #设置参数安装 [root@localhost php5.4]# ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ [root@localhost php5.4]# make [root@localhost php5.4]# make install
验证安装 [root@localhost /]# /usr/local/apache/bin/apachectl start 使用浏览器访问:http://192.168.15.239/ 出现以下信息:
恭喜,安装成功!! (责任编辑:IT) |