1.1安装Centos7.5
1.1.1在VMware Workstation新建虚拟机
勾选cpu虚拟化引擎选项
1.1.2设置及安装Centos7.5
(1)选中虚拟机右键设置,选择镜像文件路径
(2)启动虚拟机
(3)选中install Centos 7进行安装
- 选择语言为中文
- 软件选择,选择带有gui服务器,右侧不选
- 选择系统安装位置,直接点完成自动分区
- 配置网络
- 开始安装
- 等待安装
- 安装完毕后重启,配置初始设置
如前面没设置IP,可登录后手工设置:
切换root账号
su root #输入密码
编辑设置ip
vim /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=d3252c80-ee79-454f-8bf3-df16af7402bd
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.27.27
NETMASK=255.255.255.0
GATEWAY=192.168.27.2
DNS1=8.8.8.8
重启网络服务
service network restart
1.1.3克隆虚拟机
- 关闭虚拟机,选中虚拟机右键管理->克隆
- 运行克隆的虚拟机
- 配置hostname和ip
- 打开终端
- 修改hostname
(6)reboot重启虚拟机