安装CentOS7精简版后的配置工作

CentOS7完整版有7.7G,太大了下载起来比较费劲,还是下载了精简版,但是精简版安装以后很多命令都没有,还要动手配yum源,按需安装

国内的yum源比较好的就是163的了,配置方法:

 

1,进入yum源配置目录

cd /etc/yum.repos.d

 

2,备份系统自带的yum源

mv CentOS-Base.repo CentOS-Base.repo.bk

下载163网易的yum源:

curl http://mirrors.163.com/.help/CentOS7-Base-163.repo > CentOS-Base.repo

 

3,更新玩yum源后,执行下边命令更新yum配置,使操作立即生效

yum makecache

4,除了网易之外,国内还有其他不错的yum源,比如中科大和搜狐的,大家可以根据自己需求下载
中科大的yum源:
wget http://centos.ustc.edu.cn/CentOS-Base.repo
sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

 

posted @ 2017-03-12 14:40  yuchen16  阅读(4986)  评论(0编辑  收藏  举报