1、安装虚拟机软件,如Vmware
2、新建虚拟机,安装linux系统
3、Linux系统安装完成后,选择该系统,在Vmware菜单栏选择“编辑”-》“虚拟网络编辑器”,设置为桥接模式 (安装linux系统时可直接选择桥接模式,则此步可跳过)
4、关闭防火墙 chkconfig iptables off
关闭selinux vi /etc/selinux/config
5、ifconfig命令查看linux系统IP,有了IP后,在windows机器上可以使用XShell工具进行windows机器与linux上文件的传输;
如ifconfig没有看到ip地址,打开cd /etc/sysconfig/network-scripts/下对应的网卡文件,修改里面的ONBOOT=yes
5、配置yum源
1)/etc/resolv.conf文件增加:
nameserver 10.1.7.97
nameserver 10.1.7.98
2) curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.hikvision.com.cn/help/centos/6/CentOS-Base.repo
运行 yum clean all && yum makecache生成缓存
6、(可选)设置共享文件夹 https://baijiahao.baidu.com/s?id=1621983882899369902&wfr=spider&for=pc
若是VM虚拟机安装系统,网络使用桥接模式:
然后修改/etc/sysconfig/network-scripts/ifcfg-ens33文件中ONBOOT=yes
重启reboot 即可