ECS Evaluation-- Experience Source Related Problems Handling

Knowing what the ECS experience is like is the key to solving all problems. I applied for a free ECS for the test. I encountered two problems in the evaluation. I recorded it as my own small note. Thanks to this event for letting me understand and learn the ECS server. ECS (Elastic Compute Service) is an IaaS (Infrastructure as a Service) level cloud computing service provided by Alibaba Cloud with excellent performance, stability and reliability, and elastic expansion.

【ECS -Experience Source Related Problems Handling】An error is reported when installing MySQL using YUM in a CentOS 7.0 instance

problem phenomenon
The following error is displayed when MySQL is installed using the Yum command in a CentOS 7.0 instance.

File contains no section headers.
problem causes
The software repositories do not contain the relevant package.

Refer to the following steps to try to switch to the official software source of CentOS.

Edit the configuration file as follows.
/etc/yum.repos.d/epel.repo _ _ _ _ _
Modify the content of the configuration file as follows.
[ epel -source ]
name=Extra Packages for Enterprise Linux 7 - $ basearch - Source
failovermethod =priority
gpgkey =file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck =1

[ epel ]
name=Extra Packages for Enterprise Linux 7 - $ basearch #baseurl=$basearch mirrorlist= 7&arch=$basearch
failovermethod =priority
gpgcheck =0
gpgkey =file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

[ epel-debuginfo ]
name=Extra Packages for Enterprise Linux 7 - $ basearch - Debug #baseurl=$basearch/debug mirrorlist= repo=epel-debug-7&arch=$basearch failovermethod =priority
gpgkey =file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck =1
Run the following commands in sequence to make the new software source take effect.
yum makecache
yum repolist
Try reinstalling MySQL.

【ECS -Experience Source Related Problems Handling】How to configure a CentOS 6 instance to use the RPMForge repositories

RPMForge is a third-party software source repository and a third-party software source recommended by the CentOS official community. The configuration steps are outlined below.

Run the following command to view the system architecture.
uname - i
The system displays something like the following.
According to the actual system architecture, download the corresponding RPM package through commands such as wget .
Run the following command to import the DAG GPG key.
rpm --import
Run the following command to install the downloaded RPM package.
rpm -i rpmforge-release-0.5.3-1.el6.rf.*.rpm
Enter the following directory and check whether there is a repository configuration file containing the keyword " rpmforge ".
/etc/yum.repos.d/ _ _ _ _
The system displays something similar to the following, indicating that the installation of the RPMForge software source is complete.

Copyright statement: The content of this article is contributed by Alibaba Cloud real-name registered users. The copyright belongs to the original author. The Alibaba Cloud developer community does not own the copyright and does not assume the corresponding legal responsibility. For specific rules, please refer to the " Alibaba Cloud Developer Community User Service Agreement " and " Alibaba Cloud Developer Community Intellectual Property Protection Guidelines ". If you find any content suspected of plagiarism in this community, fill out the infringement complaint form to report it. Once verified, this community will delete the allegedly infringing content immediately.

Related Articles

Explore More Special Offers

  1. Short Message Service(SMS) & Mail Service

    50,000 email package starts as low as USD 1.99, 120 short messages start at only USD 1.00

phone Contact Us