Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Centos7 modifies yum source to Ali source (big data preparatory course 02q2)

Shulou Source: shulou.com Published: 2022-06-03 01:44:02 11月15日 Update

# # make sure you can access the Internet. I don't know how to check big data matriculation 02o1.

(1)。 Install wget softwar

Yum install-y wget

Complete is displayed at the end of the installation, indicating that the installation is successful.

(2)。 View the Yum source information:

Yum repolist

At present, yum connects to foreign websites, ordinary (fq seems to be very strict now) download restrictions and speed is very much! Very! Very slow!

(3)。 Enter the installation directory

Cd / etc/yum.repos.d

(4)。 Back up old configuration files

Mv CentOS-Base.repo CentOS-Base.repo.bak

(5)。 Download the file of the Ali source (install the base reop source)

Wget-O / etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/Centos-7.repo

(6)。 Clean the cache

Yum clean all

(7)。 Redeploy

Yum makecache

(8)。 View the Yum source information again

Yum repolist

Successfully deployed, the warehouse was changed to Aliyun.

Tags: Ali success file source information data preparatory general Internet warehouse again backup directory cache website software speed interconnection guarantee configuration restriction Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Technology Shulou Information Huawei OPPO Reno