728x90
[Centos7] 아파치 Apache (httpd) 업데이트 Apache/2.4.55
Centos7에서는 Yum으로 아파치 설치 시 2.4.6버전이 최대이지만 설정을 통해 업데이트할 수 있다.
보안업데이트 권고로 Apache HTTP Server의 버전을 최신버전(2.4.55)으로 업데이트 해보자.
- 현재 Apache(httpd) 버전 확인
$ yum info httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
Name : httpd
Arch : x86_64
Version : 2.4.6
Release : 97.el7.centos.5
Size : 9.4 M
Repo : installed
From repo : updates
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
$ httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Mar 24 2022 14:57:57
- 아파치 설정 파일 백업
$ cd /etc
$ cp -ra httpd httpd.bak
- EPEL(Extra Packages for Enterprise Linux) 설치
$ yum -y install epel-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-14 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
epel-release noarch 7-14 fedorapoject 15 k
Transaction Summary
====================================================================================================================================
Install 1 Package
Total download size: 15 k
Installed size: 25 k
Downloading packages:
epel-release-7-14.noarch.rpm | 15 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-14.noarch 1/1
warning: /etc/yum.repos.d/epel.repo created as /etc/yum.repos.d/epel.repo.rpmnew
Verifying : epel-release-7-14.noarch 1/1
Installed:
epel-release.noarch 0:7-14
Complete!
- EPEL Repository 다운로드
$ cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo
--2022-07-11 13:29:15-- https://repo.codeit.guru/codeit.el7.repo
Resolving repo.codeit.guru (repo.codeit.guru)... 172.67.213.44, 104.21.35.39, 2606:4700:3037::6815:2327, ...
Connecting to repo.codeit.guru (repo.codeit.guru)|172.67.213.44|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 159 [text/plain]
Saving to: ‘codeit.el7.repo’
100%[=================================================================================================================================================================>] 159 --.-K/s in 0s
2022-07-11 13:29:16 (17.6 MB/s) - ‘codeit.el7.repo’ saved [159/159]
- EPEL Repository 다운로드 (SSL Certificate 오류가 날 경우 --no-check-certificate)
$ cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo --no-check-certificate
- yum 다운로드 가능한 httpd 확인
$ yum list httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
CodeIT | 3.0 kB 00:00:00
CodeIT/x86_64/primary_db | 161 kB 00:00:00
Installed Packages
httpd.x86_64 2.4.6-97.el7.centos.5 @updates
Available Packages
httpd.x86_64 2.4.55-1.codeit.el7 CodeIT
- 업데이트 아파치 버전
$ yum -y install httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
...
Dependency Installed:
httpd-filesystem.noarch 0:2.4.54-1.codeit.el7 libbrotli.x86_64 0:1.0.9-1.codeit.el7 openssl-quic-libs.x86_64 0:1.1.1q-1.codeit.el7
Updated:
httpd.x86_64 0:2.4.55-1.codeit.el7
Dependency Updated:
apr.x86_64 0:1.7.0-2.el7 apr-util.x86_64 0:1.6.1-6.el7 httpd-tools.x86_64 0:2.4.54-1.codeit.el7
Complete!
업데이트 된 설정 파일들을 확인해보면 그동안 했었던 설정들도 그대로 유지되면서 업데이트 된 것을 확인할 수 있다.
- Apache 버전 확인
$ httpd -v
Server version: Apache/2.4.55 (codeit)
Server built: Jan 17 2023 16:57:11
728x90
'OS & Server > Linux' 카테고리의 다른 글
[Centos7] Open JDK18 (JAVA Development Kit) 업데이트 (0) | 2022.07.15 |
---|---|
[Centos7] Open JDK11 (JAVA Development Kit) 설치 (0) | 2022.07.14 |
[Centos7] 아파치 Apache(httpd) 설치 (0) | 2022.07.11 |
[Centos7] firewall 방화벽 명령어 (0) | 2022.07.05 |
[Centos7] systemctl 명령어 사용법 (0) | 2022.07.05 |
댓글