centos6.5升级httpd

1: rpm -qa httpd*

    httpd-tools-2.2.15-29.el6.centos.x86_64
    httpd-2.2.15-29.el6.centos.x86_64


2:yum -y remove httpd*
    Removed:
      httpd.x86_64 0:2.2.15-29.el6.centos  httpd-tools.x86_64 0:2.2.15-29.el6.centos                                                        

    Dependency Removed:
      gnome-user-share.x86_64 0:2.28.2-3.el6                                                                                                                                                       

    Complete!
    
3:下载组件包:apr-1.6.2.tar.gz,apr-util-1.6.0.tar.gz,httpd-2.4.27.tar.bz2
    本次按照路径都在:/usr/local 下

4:解压安装相应包依赖包
   tar xvf httpd-2.4.27.tar.bz2
   tar xvf apr-1.6.2.tar.gz
   tar xvf apr-util-1.6.0.tar.gz
   
   mv apr-1.6.2 httpd-2.4.27/srclib/apr
   mv apr-util-1.6.0 httpd-2.4.27/srclib/apr-util
   
   yum install expat-devel
   
5: 编译安装httpd-2.4.27
    ./configure --prefix=/usr/local/httpd24 --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --with-included-apr --enable-modules=most --enable-mpms-shared=all --with-mpm=prefork
    
    错误 : configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
    解决方案:yum -y install pcre-devel
    make && make install
   
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值