一、查看IPshell
(1)默認命令 ip addrvim
(2)打開/etc/sysconfig/network-scripts/ifconfig-xx目錄修改ONBOOT=no爲ONBOOT=yescentos
vi /etc/sysconfig/network-scripts/ifconfig-xx 緩存
(3)使ifconfig命令能使用網絡
yum install net-tools centos7
(4)將虛擬機網絡改成橋接方式,以便使用Xshellspa
二、切換國內鏡像(選用168鏡像)ip
(1)首先備份/etc/yum.repos.d/CentOS-Base.repo鏡像源get
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
三、安裝vim
yum install vim