一、安装vmware
安装虚拟机,只能本地访问,和同一个局域网去访问。
1.下载安装

2.点击 “vmware.exe”安装 =》 下一步 =》我接受 =》典型 =》下一步(默认安装路径) =》下一步 =》继续 =》完成
二、搭建虚拟机
1.打开vmware =》文件 =》新建虚拟机 =》典型 =》下一步

2.安装映像文件(根据电脑选择32位、64位,选中压缩包即可)=》下一步

3. 填写用户名等信息 &下一步 =》选择好安装路径 &下一步 =》下一步(配置信息不用管)=》完成



4. 如果弹出对话框,点击“取消”。如果弹窗中有“OK”,点击“OK”,点击时如果鼠标没有反应,用键盘 “enter”点击。安装过程应该有5分钟左右。

5.加载完毕=》点击用户名,输入密码 =》关机(右击 =》电源 =》关机)



6. 编辑 =》虚拟网络编辑器 =》还原默认设置【恢复默认设置】 =》选择vmnet8 =》点击DHCP设置 =》填写租用时间 63 =》 确定 =》确定
恢复默认设置,是为了与本地机器相互ping通。




7.选择 CentOS 64位 ,点击“开启此虚拟机” ; 过程中弹出两个对话框,直接关闭对话框

8.右击 =》 选择第四个 =》输入 ifconfig


9. 本地, cmd =》输入 ipconfig。
10. 本地ip与虚拟机ip不同,虚拟机关机。 编辑 =》虚拟网络编辑器 =》选择vmnet8 =》设置子网ip =》 点击DHCP设置 =》修改开始、结束ip地址 =》 确定 =》确定

11. 开启次虚拟机 =》输入密码 =》右击,选择第四个 =》输入 ifconfig =》 本地去ping虚拟机ip地址
su root【切换为管理员权限】


12.虚拟机ip能不能访问外网IP, ping www.baidu.com

网友评论