Tools Linux download file wget, refused to turtle speed

Fifth, install wget

wget is a tool to download the file

 

安装wget:yum install wget -y

image.png

 

 

Sixth, modify yum source for domestic mirror

1. cut into the directory CentOS-Base.repo    

cd  /etc/yum.repos.d

2. The CentOS-Base.repo renamed CentOS-Base.repo.bak    

mv CentOS CentOS Base.repo Base.repo.bak

3. Download Ali source file    

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

image.png


4. Clear Cache

yum clean all

The regenerating the cached

yum makecache

 

Finally, you can use wget fast download resource needs, it is convenient


Guess you like

Origin blog.51cto.com/13185351/2429035