Centos6.764位 安装apache

来源:互联网 发布:数据库nvl 编辑:程序博客网 时间:2024/05/19 07:11

按公司要求apache、mysql、php必须源码安装依赖可以yum安装

[root@localhost ~]# cd /usr/local/src

[root@localhost src]# vi Downloadlist

wget http://mirrors.hust.edu.cn/apache/httpd/httpd-2.4.17.tar.bz2   #apache 下载地址


tar jxvf httpd-2.4.17.tar.bz2 

cd httpd-2.4.17



[root@localhost src]# cd httpd-2.2.16[root@localhost httpd-2.2.16]# ./configure \--prefix=/usr/local/apache \--enable-so \--enable-deflate=shared \--enable-expires=shared \--enable-rewrite=shared \
--with-included-apr \
--with-pcre
报错什么依赖包就安装什么。
如果在安装apache的时候入到 error: mod_deflate has been requested but can not be built due to prerequisite failures的错误,那是没有安装zlib包。centos下可以采用yum install zlib-devel。
没有什么意外的话就可以 make  && make install
 

0 0
原创粉丝点击