In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
This article is to share with you how to upgrade the apache version of centos7. I believe most people have not learned this skill. In order to let you learn, I have summarized the following content. Without saying much, let's read on.
Step 1: find the Apache version on the default software library
To find the Apache version in the software library on Centos, type the following command at the command line:
Yum info httpd
If your centos remains in the default configuration, you are likely to get a similar result:
[root@crosp ~] # yum info httpdLoaded plugins: fastestmirrorepel/x86_64/metalink | 19 kB 00:00epel | 4.3 kB 00:00 (1pm 3): epel/x86_64/group_gz | 170 kB 00:00 (2) / 3): epel/x86_64/primary_db | 4.6 MB 00:00: epel/x86_64/updateinfo | 780 kB 00:00Loading mirror speeds from cached hostfile * base: mirrors.ircam.fr * epel: mirrors.ircam.fr * extras: centos.mirror.fr.planethoster.net * updates: centos.mirror.fr.planethoster.netAvailable PackagesName : httpdArch: x86_64Version: 2.4.6Release: 45.el7.centos.4Size: 2.7 MRepo: updates/7/x86_64Summary: Apache HTTP ServerURL: http://httpd.apache.org/License: ASL 2.0Description: The Apache HTTP Server is a powerful Efficient, and extensible: web server.
As you can see from the output above, there is only version 2.4.6 of apache in the default library.
Note:
Centos uses backward repair security practices to apply new software fixes to earlier versions. Therefore, earlier versions of the software in the default library do not mean that they are more vulnerable. However, for me, it is not an update to meet the needs.
You can use changelog to view version updates:
Sudo yum install yum-changelogyum changelog httpd
Step 2: install the CodeIT library
CodeIT's people provide a good library of customization. This library provides the latest version of the server software (Apache & Nginx).
Before installing the CodeIT library, you need to open EPEL. EPEL provides the dependencies required by the CodeIT library.
Sudo yum install-y epel-release
Finally, let's install the CodeIT library
Cd / etc/yum.repos.d & & wget https://repo.codeit.guru/codeit.el`rpm-Q-- qf "% {VERSION}" $(rpm-Q-- whatprovides redhat-release) `. Repo
Next, let's reconfirm the package version of Apache, and you should see output similar to the following
[root@crosp ~] # yum info httpdLoaded plugins: changelog FastestmirrorLoading mirror speeds from cached hostfile * base: centos.crazyfrogs.org * epel: mirror.23media.de * extras: mirrors.ircam.fr * updates: centos.mirror.fr.planethoster.netAvailable PackagesName: httpdArch: x86_64Version: 2.4.25Release: 3.el7.codeitSize: 1.4 MRepo: CodeIT/x86_64Summary: Apache HTTP ServerURL: http://httpd.apache.org/License: ASL 2.0Description: The Apache HTTP Server is a powerful, efficient And extensible: web server.
Step 3: install Apache
Now you should have everything you need to install the latest version of apache:
Yum install httpd
Once Apache is installed, we can test whether apache is working properly:
[root@crosp ~] # systemctl start httpd
The output should be similar to the following figure:
[root@crosp] # curl localhost Test Page for the Apache HTTP Server on CentOS...
Finally, have systemctl set Apache to boot:
[root@crosp ~] # systemctl enable httpd
The above is the method of upgrading the apache version in centos7, and the details of the use still need to be used by yourself. If you want to know more about it, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.