1 环境搭建

虚拟机 readhat镜像文件

2 思路

虚拟机 

3 注意

启动分区 /boot 

根分区 /

交换分区 swap

4 详细步骤

 1)文件-新建虚拟机-自定义-稍后安装操作系统-选择linux及readhat enterprise linux 6 64位-仅使用主机模式-创建新的虚拟磁盘-选择内存-完成

 2)编辑虚拟机设置-网络适配器—仅主机模式vmnet1-光驱使用iso印象文件

 3)开启-默认选第一个install-skip跳过不用检测-next-英文或中文-键盘也是-basic storage device基本存储磁盘-next-yes-hostname

 4)configure network 配置网络-system eth0 never 选edit编辑-勾选connect 连接后自动激活-ipv4-manual手动--addaddress-192.168.100.90自定义一个ip地址-apply应用-close关闭-next-rootpassword系统管理员密码-create-custome layout自定义-next-create-create-mount point挂载点--/boot启动分区 200M-ok-create-create-swap交换分区 2048 内存的两倍-create-create-/根分区 fill to maximum allowable size 把剩余容量都给根分区-ok=next-

5)fomat格式化-write changes to disk 写进磁盘-next-customize now 现在自定义-上面basic server -next勾选compatibillity libraries-development全选

6)reboot重启

查看ip

地址ifconfig etho

并且ping通