首页 > Web开发 > 详细

apache 2.4.39 编译安装与RPM安装方式记录

时间:2019-06-28 10:37:52      阅读:114      评论:0      收藏:0      [点我收藏+]
1.apache 2.4.39编译安装选项
./configure --prefix=/usr/local/apache24 --sysconf=/etc/httpd24 --enable-so --enable-ssl --enable-rewrite --with-zlib --with-pcre --with-apr=/usr/local/apr  --with-apr-util=/usr/local/apr-util --enable-modules=most  --enable-mpms-shared=all --with-mpm=prefork
make -j8 && make install

2.下载最新repo文件方式安装(ius方式安装)

wget https://mirrors.tuna.tsinghua.edu.cn/ius/ius-release-el7.rpm
yum remove httpd httpd-tools-2.4.6-89.el7.centos.x86_64
yum install ius-release-el7.rpm  -y
yum install httpd24u -y

3.在原有版本的基础上升级安装apache 2.4.39

cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo
yum install httpd httpd-tools -y
httpd -v
Server version: Apache/2.4.39 (codeit)
Server built:   May 31 2019 14:14:30

总结:在网络好的情况下或者需要不需要编译什么特殊功能建议采用yum方式安装!

apache 2.4.39 编译安装与RPM安装方式记录

原文:https://blog.51cto.com/9447803/2414587

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!