Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Common problems and Solutions of CentOS configuration failure

2025-01-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains the "common CentOS configuration failure problems and solutions", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "common CentOS configuration failure problems and solutions" bar!

When CentOS configuration fails, maybe you don't know the reason for the failure. Where do you start to correct the error? Here, we summarize some common problems that lead to failure.

In the CentOS configuration problem, the CentOS system failed to upgrade php and mysql with the yum command.

Failure to configure CentOS is as follows:

First, see the php version of the system.

# rpm-qa | grep php php-common-5.1.6-20.el5_2.1 php-cli-5.1.6-20.el5_2.1 php-5.1.6-20.el5_2.1 php-ldap-5.1.6-20.el5_2.1

Then see that this version is not * *, use the following command to upgrade

# yum-y update php Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile * base: centos.candishosting.com.cn * updates: centos.candishosting.com.cn * addons: centos.candishosting.com.cn * extras: centos.candishosting.com.cn Setting up update Process Could not find update match for php No Packages marked for Update

CentOS configuration says there is no php version that can be upgraded, while the official php is * *, php is 5.2.*, but the centos system is still 5.1. Solution: because the php version of the source that comes with the centos system is not updated, additional sources are needed to upgrade php and mysql. Solution: update the source of the system, and then you can solve it after upgrading.

# vi / etc/yum.repos.d/zongguofengcn.repo [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 this file wq and run the following command again to complete the upgrade of php # yum-y update php. Similarly, run the following command to upgrade mysql # yum-y update mysql, comment:

Yum in CentOS configuration is a tool that comes with some linux versions of rhel, centos and other systems to easily add / delete / update RPM packages. It can automatically solve the problem of package dependence. Update some software packages with yum, a command can fix the CentOS configuration of the php version of the default is 5.1.6, and then before the 5.2.9 version of php there is a loophole, but at present many places on the Internet can not use yum update php* to upgrade to 5.2.9, it is more common to upgrade to 5.2.6 version, after searching foreign information Now we have finally found a way to upgrade CentOS's php to 5.2.9. Note that this method can only be upgraded on the official version of php. If you have already upgraded using the online upgrade method to version 5.2.6, you will not be able to use this method to upgrade php. Run the following command:

# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm # wget http://rpms.famillecollet.com/enterprise/5/remi/i386/remi-release-5-7.el5.remi.noarch.rpm # rpm-Uvh remi-release-5*.rpm epel-release-5*.rpm and then edit / etc/yum.repos.d/remi.repo # vi / etc/yum.repos.d/remi .repo adds a line to the * of this file: priority=1 save exit.

The files / etc/yum.repos.d/epel.repo and / etc/yum.repos.d/epel-testing.repo are also edited according to the above method!

The following command is used in the CentOS configuration to upgrade, but after testing, if you upgrade php separately, it will fail. You can only upgrade China Unicom mysql together, so we must execute the following command to upgrade php to version 5.2.9:

Yum-- enablerepo=remi update php* mysql* yum-- enablerepo=remi update php* mysql* thank you for reading, the above is the content of "common CentOS configuration failure problems and solutions". After the study of this article, I believe you have a deeper understanding of the common CentOS configuration failure problems and solutions, and the specific use needs to be verified in practice. 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: 280

*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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report