centos replace yum source

PHP中文网
Release: 2017-06-20 09:34:45
Original
2074 people have browsed it

Centos source is changed to 163 or Alibaba.

1. Backup first
mv /etc/yum.repos.d/Centos-Base.repo /etc/yum.repos.d/Centos-Base.repo.backup

2. Download the repo file to the directory
cd /etc/yum.repos.d
wget
3. yum clean all //Clear cache
yum makecache //Generate a new cache

163 and aliyun mirror:



The above is the detailed content of centos replace yum source. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template