centos7 online when yum install mysql official download mirror too slow Solutions

     Helping customers to debug database, set up a test environment, after centos7 minimize installation, on-line installation mysql.

step:

1、

wget -i http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm

2、

yum -y install mysql57-community-release-el7-10.noarch.rpm

3、yum -y install mysql-community-server

yum -y install mysql-community-server

 

Wherein Step 3 is connected to the foreign image because, giant slow, and sometimes less than 1K / sec.

 mysql_local2

But when you install again through observation, we found that the smallest * common * files are not downloaded again, then checked, yum download cache file path:

/var/cache/yum/x86_64/7/mysql57-community/packages/

 

mysql_local

 

Final Solution:

1, from the domestic mirrored download the corresponding rpm file, uploaded by sFTP to the server, and then re-run

yum -y install mysql-community-server

 

2, domestic mirror sites:

http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/

http://uni.mirrors.163.com/mysql/Downloads/

 

Guess you like

Origin www.cnblogs.com/downmoon/p/11896158.html