1、安装虚拟机
virtualBox下载地址:
https://www.virtualbox.org/wiki/Download_Old_Builds_5_1
Xshell下载(Win):
http://dlsw.baidu.com/sw-search-sp/soft/7b/15201/Xshell_5.0.0.37_setup.1459931786.exe
CentOS下载:http://101.96.10.31/isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1708.iso
替换默认源:
阿里源:http://mirrors.aliyun.com/
网易源:http://mirrors.163.com/
本次使用网易源:http://mirrors.163.com/.help/centos.html
2、 安装virtualBox及CentOS7








3、虚拟机配置
1、查看ip
ifconfig
ip addr
2、vi /etc/sysconfig/network-scripts/ifcfg-enp0s3

3、然后运行service network restart
4、查看ip addr
5、运行 yum install net-tools安装网卡驱动
6、ifconfig 查看ip地址

7、设置链接


8、再次启动,输入ifconfig

9、打开xshell



10、进入xhell后先执行
yum install wget
安装wget工具完成后
11、替换默认源
按照这个网址操作即可:http://mirrors.163.com/.help/centos.html
执行mv /etc/yum.repos.d/CentOS-Base.repo
/etc/yum.repos.d/CentOS-Base.repo.backup
执行:cd
/etc/yum.repos.d/
执行:wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
执行:yum clean all
yum makecache
此时替换源完成
网易源:http://mirrors.163.com/.help/CentOS7-Base-163.repo
阿里源:http://mirrors.aliyun.com/repo/Centos-7.repo
12、安装vim
执行:yum install vim
网友评论