In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to upgrade PHP and MySQL in CentOS system". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to upgrade PHP and MySQL in CentOS system".
Updating php with yum can be done with a single command:
# yum update php
But here's the problem. After using this command, the system told me that no updatable packages were found. The current version of php is only 5.2.1 and php has been officially updated to 5.2.6.
After some inquiry, I learned that the source php of the original centos system is still 5.2.1, and additional sources are needed to upgrade php.
According to foreign netizens, Binggu added additional sources:
After logging in to ssh, run the following commands:
# rpm-import http://www.jasonlitka.com/media/rpm-gpg-key-jlitka
# vi / etc/yum.repos.d/utterramblings.repo # nano is used here, but vps cannot start nano, so it is possible to use vi instead
Add the following to the open document:
[utterramblings]
Name=jason's utter ramblings repo
Baseurl= http://www.jasonlitka.com/media/el$releasever/$basearch/
Enabled=1
Gpgcheck=1
Gpgkey= http://www.jasonlitka.com/media/rpm-gpg-key-jlitka
Save.
Run the following command again to complete the upgrade of php
# yum update php
Similarly, run the following command to upgrade mysql
# yum update mysql
Thank you for your reading, the above is the content of "how to upgrade PHP and MySQL in CentOS system". After the study of this article, I believe you have a deeper understanding of how to upgrade PHP and MySQL in CentOS system. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.