目的
本文主要介紹以下內(nèi)容:
設(shè)置centos的國內(nèi)軟件源,默認(rèn)源都是國外的下載軟件超級麻煩。
ssh登錄
下載一個shell或者cmder
ssh root@192.168.10.18 #上篇設(shè)置的ip
下載wget
yum install -y wget #wget網(wǎng)絡(luò)下載命令
配置源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup #備份
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo #設(shè)置阿里源
yum makecache #生成緩存
|