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

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方式安装!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值