(go) Yum install mariadb (quick install with domestic mirror, three minutes installation completed)

Source: Internet
Author: User
Tags gpg

Original: 72675840

https://tinpont.com/2017/fix-yum-download-mariadb-slow/--------CentOS To solve the problem of Yum download mariadb 10.1 too slow

I use the CentOS 7 system, other Linux distributions can also be referenced. Mainly about how to use the domestic image to speed up the installation.

To access the MariaDB download page, you can see:

On the right, you can select the platform you want to install, the format of the installation package, and the number of CPU bits. Select RPM Package here, the following CPU section select 64-bit, then you can see this page:

When the selection is complete, there is a link to download in the middle, but there is a line of words, that is, the best way to install through RPM is through the Warehouse Configuration tool, then click to see it, the page appears:

After selecting the distribution, hardware architecture, and software versions above, a configuration is shown below:

#MariaDB 10.2 CentOS Repository list-created 2017-05-24 06:22 UTC

#http://downloads.mariadb.org/mariadb/repositories/

[MARIADB]

Name = MariaDB

BaseURL =HTTP://YUM.MARIADB.ORG/10.2/CENTOS7-AMD64

Gpgkey=https://yum.mariadb.org/rpm-gpg-key-mariadb

Gpgcheck=1

For CentOS 7, this configuration needs to be placed in a file with a. Repo suffix, the recommended name is Mariadb.repo. Then put this file in the/etc/yum.repos.d/directory.

After the release, pass

sudo yum install mariadb-server mariadb-client

This command installs, so there will be a long wait, download speed Super 10k/s ... If the download amount is less than 1m,yum in 1 minutes will automatically switch the mirror, but this does not have any ghost, switching or very slow ...

Okay, here's the point, here's how to download MariaDB quickly.

Back to the configuration file just now, there are four lines configured

Name, BaseURL, Gpgkey, Gpgcheck.

Name nothing to say, Gpgcheck equals 1 means open GPG checksum, equals 0 to turn off GPG checksum.

The key is BaseURL and Gpgkey.

BaseURL above configuration is the official address of MARIADB, the domestic visit is very slow, change it to the domestic address can

Gpgkey used to verify the key

The following directly post the modified configuration, and then say how to find the domestic mirror

[MARIADB]

Name = MariaDB

BaseURL = http://mirrors.ustc.edu.cn/mariadb/yum/10.2/centos7-amd64/

Gpgkey=http://mirrors.ustc.edu.cn/mariadb/yum/rpm-gpg-key-mariadb

Gpgcheck=1

As you can see, the addresses of BaseURL and Gpgkey have been modified and now run the install command

(sudo yum install mariadb-server mariadb-client),

You will find that the speed is above 2m/s, a two-minute download is good.

Here is how to find the domestic mirror address, see:

Is this page familiar? Yes, it is the download page. On the right side of the CPU, there are Mirror, the inside can choose the mirror address, the first second is very fast, the other has not tried, and then back to the middle, look at the size of the row of values, and then randomly select a row, click on the left side of the link, enter the download page, will pop up a window, the download window Go back to the browser and copy the browser's address, just like this:

https://downloads.mariadb.org/interstitial/mariadb-10.2.6/bintar-linux-systemd-x86_64/ mariadb-10.2.6-linux-systemd-x86_64.tar.gz/from/http%3a//mirrors.neusoft.edu.cn/mariadb/

The point is the tail of the address, that is, http%3a//mirrors.neusoft.edu.cn/mariadb/%3a to Colon, and then at the end add yum/, get this address:

http://mirrors.neusoft.edu.cn/mariadb/yum/

Then paste this address back into the browser, what do you see? Yes, yum Mirror!

All right, here's the article ^_^

(go) Yum install mariadb (quick install with domestic mirror, three minutes installation completed)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.