安装好CentOS系统之后,我们需要对环境进行一些基本的配置,让Linux更好用
写在前面
注意:本文章是针对arm32的CentOS7进行配置的,其他系统或不同架构不要尝试。
配置yum镜像源
1、首先让我们切换到root
su root
2、进入配置文件所在目录
cd /etc/yum.repos.d/
3、以防万一先备份,其实没必要
mv CentOS-Base.repo CentOS-Base.repo.bak
4、使用vi命令编辑CentOS-Base.repo文件
vi CentOS-Base.repo
替换为下面的内容
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=C