国内Yum安装MariaDB很慢解决办法(换中国电信源) - 开发说
当前位置: 主页 » MariaDB » 国内Yum安装MariaDB很慢解决办法(换中国电信源)

国内Yum安装MariaDB很慢解决办法(换中国电信源)

      2017年04月20日   阅读 2,263 次     0 评论   Tags: · ·

今天升级Mariadb,下载速度很慢,因为用的Mariadb官方源,由于墙的关系?导致下载很慢,才几KB/S,我是电信50M光钎宽带啊,而且还出现超时的现象,换成中国电信天翼云镜像源,下载速度达到2.8M/S,爽歪歪。

Total download size: 141 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
MariaDB-10.1.22-centos7-x86_64 FAILED                                                                                      ] 1.5 kB/s | 526 kB  25:43:27 ETA 
http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-10.1.22-centos7-x86_64-common.rpm: [Errno 12] Timeout on http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-10.1.22-centos7-x86_64-common.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
MariaDB-10.1.22-centos7-x86_64 FAILED                                                                                      ]   48 B/s | 794 kB 841:51:57 ETA 
http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-10.1.22-centos7-x86_64-client.rpm: [Errno 12] Timeout on http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-10.1.22-centos7-x86_64-client.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
MariaDB-10.1.22-centos7-x86_64 FAILED                                                                                      ]  0.0 B/s | 321 kB  --:--:-- ETA 
http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-10.1.22-centos7-x86_64-server.rpm: [Errno 12] Timeout on http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-10.1.22-centos7-x86_64-server.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
(1/3): MariaDB-10.1.22-centos7-x86_64-common.rpm                                                                                      | 123 kB  00:00:43     
MariaDB-10.1.22-centos7-x86_64 FAILED                                                                                    ]  1.9 B/s | 920 kB 21532:16:48 ETA 
http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-10.1.22-centos7-x86_64-client.rpm: [Errno 12] Timeout on http://yum.mariadb.org/10.1/centos7-amd64/rpms/MariaDB-10.1.22-centos7-x86_64-client.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')

把官方源换成中国电信天翼云镜像源

官方源:下载几KB/S
root@localhost ~]# vi /etc/yum.repos.d/MariaDB.repo 

[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

换成中国电信天翼云的源,下载速度有很大提升。2.8M/S
[root@localhost ~]# cat /etc/yum.repos.d/MariaDB.repo 
[mariadb]
name = MariaDB
baseurl = http://mirrors.ctyun.cn/MariaDB/yum/10.1/centos7-amd64
gpgkey=http://mirrors.ctyun.cn/MariaDB/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1

运行以下命令生成缓存
yum clean all
yum makecache

换源以后的效果:

Total size: 217 M
Total download size: 140 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/2): MariaDB-10.1.22-centos7-x86_64-client.rpm                                                                                      |  39 MB  00:00:19     
(2/2): MariaDB-10.1.22-centos7-x86_64-server.rpm                                                                                      | 101 MB  00:00:49     
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                        2.8 MB/s | 140 MB  00:00:49     
  • 版权声明:本文版权归开发说和原作者所有,未经许可不得转载。文章部分来源于网络仅代表作者看法,如有不同观点,欢迎进行交流。除非注明,文章均由 开发说 整理发布,欢迎转载,转载请带版权。

  • 来源:开发说 ( https://www.kaifashuo.com/ ),提供主机优惠信息深度测评和服务器运维编程技术。
  • 链接:https://www.kaifashuo.com/59.html
  • 评论(0

    1. 还没有任何评论,你来说两句吧

    发表回复

    您的电子邮箱地址不会被公开。 必填项已用 * 标注