apache在线升级yum_centos7下升级apache至最新版本

本文介绍了如何在CentOS 7系统中通过YUM升级Apache到最新版本。首先,通过`yum info httpd`检查当前Apache版本。然后,启用EPEL并安装CodeIT库以获取最新软件包。最后,使用`yum install httpd`安装Apache,并通过`systemctl`管理服务确保其开机自启。
摘要由CSDN通过智能技术生成

第一步:找出默认软件库上的Apache版本

为了查找Centos上软件库里的Apache版本,在命令行下输入以下指令:yum info httpd

如果你的centos保持着默认的配置的话,你很可能会按到类似的结果:[root@crosp ~]# yum info httpd

Loaded plugins: fastestmirror

epel/x86_64/metalink | 19 kB 00:00

epel | 4.3 kB 00:00

(1/3): epel/x86_64/group_gz | 170 kB 00:00

(2/3): epel/x86_64/primary_db | 4.6 MB 00:00

(3/3): epel/x86_64/updateinfo | 780 kB 00:00

Loading mirror speeds from cached hostfile

* base: mirrors.ircam.fr

* epel: mirrors.ircam.fr

* extras: centos.mirror.fr.planethoster.net

* updates: centos.mirror.fr.planethoster.net

Available Packages

Name : httpd

Arch : x86_64

Version : 2.4.6

Release : 45.el7.centos.4

Size : 2.7 M

Repo : updates/7/x86_64

Summary : Apache HTTP Serve

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值