1、查看IP
(1)默认命令 ip addr
(2)打开/etc/sysconfig/network-scripts/ifconfig-xx目录修改ONBOOT=no为ONBOOT=yes
vi /etc/sysconfig/network-scripts/ifconfig-xx
(3)使ifconfig命令能使用
yum install net-tools
(4)将虚拟机网络改为桥接方式,以便使用Xshell
2、切换国内镜像(选用168镜像)
(1)首先备份/etc/yum.repos.d/CentOS-Base.repo镜像源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
(2)进入到 /etc/yum.repos.d/目录下
cd /etc/yum.repos.d/
(3)下载centos7版本的repo文件
wget https://mirrors.163.com/.help/CentOS7-Base-163.repo
(4)运行以下命令生成缓存
yum clean all
yum makecache
3、安装vim
yum install vim