http://www.virtualbox.org下载virtualBox
https://www.centos.org/ 下载CentOS 7
http://www.xshellcn.com 下载XShell
安装virtualBox
新建centos linux系统 redhat64bit 内存1G足够 硬盘动态分配 10G
启动虚拟机,安装centos 右ctrl可解锁鼠标窗口锁定
装好重启
账号root
安装xshell
centos配置网卡:
1虚拟机-设置-网络-桥接
2进入虚拟机 cd /etc/sysconfig/network-scripts/
ll ifcfg-*
vi enp**** 编辑网卡文件
BOOTPROTO=static
IPADDR=自己电脑同网段ip
NATMASK=255.255.255.0
GATEWAY=自己电脑同网关
UNBOOT=yes
'esc'--':'--'wq'退出编辑
重启网卡 service network restart
Xshell新建会话 输入虚拟机ip
配置DNS
cd /etc/
vi resolv.conf
nameserver 8.8.8.8
nameserver 8.8.8.4
重启网卡