LInux系统@安装CentOS7虚拟机
Posted 123456mdy
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LInux系统@安装CentOS7虚拟机相关的知识,希望对你有一定的参考价值。
安装Centos7虚拟机
1.打开VMware,点击创建新的虚拟机(至关重要)
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-59675d21886d4ac4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/738/format/webp)
2.选择自定义配置,点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-34350c48d3e735e0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/498/format/webp)
3.选择虚拟机硬件兼容性<Workstation 12.0>,点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-2dbf50023c6e2022.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/500/format/webp)
4.安装客户机操作系统选择稍后安装操作系统,点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-c942230ad01d38d9.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/500/format/webp)
5.安装客户机操作系统选择Linux,点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-267ab007af1d2044.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/497/format/webp)
6.虚拟机名称(随意),选择虚拟机安装位置(建议新建文件夹),点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-f2fd6e8bedd7eeed.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/499/format/webp)
7.处理器配置:处理器数量与每个处理器的核心数量一般都选择1(与自己电脑的配置有关),然后点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-1a46e129ce79ffb4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/498/format/webp)
8.为虚拟机分配内存(建议1GB以上,但不要超过电脑运行内存),完成后点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-f75b78c1e6642610.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/498/format/webp)
9.网络类型:选择使用网络地址转换(NAT),点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-89648820723668f8.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/500/format/webp)
10.选择控制器:默认推荐,点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-5dca6e614f87dac1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/495/format/webp)
11.选择磁盘类型:默认推荐,点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-76b1d4f7818eabf4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/494/format/webp)
12.选择磁盘:创建新虚拟磁盘,点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-f544dcebdb1e33bb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/498/format/webp)
13.指定GB多磁盘容量:最大磁盘容量大小(建议20GB,也可以比多),特别注意此处选择将虚拟磁盘存储为单个文件,然后点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-94fe172cde3e04a2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/499/format/webp)
14.指定磁盘文件:不做修改,点击下一步
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-8fae7d7128fc686f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/502/format/webp)
15.到此处点击自定义硬件,进入下个页面操作
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-717c4adbe285a393.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/499/format/webp)
16.设备一栏移除暂时不需要的然后点击新CD/DVD(IDE),右边连接项选择使用ios映像文件点击浏览找到保存到映像文件
(例如CentOS-7-x86_64-DVD-1810.iso),最后点击关闭
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-c705561f54439384.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/729/format/webp)
17.完成上一步回到此页面点击“完成”
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-a5fd9743f38f88ee.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/493/format/webp)
18.到了这一步,点击开启此虚拟机
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-e4ef654b859e32a6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/684/format/webp)
19.点击鼠标进入界面倒计时消失,选择install CentOS 7按回车
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-0fd0fb8b1c3f382e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/524/format/webp)
按Tab键在最下行输入命令net.ifnames=0 biosdevname=0点击回车
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-d73d9c8963291eab.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/642/format/webp)
20.出现第一个页面继续等待加载
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-2c776082c2f1d632.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/672/format/webp)
选择语言(推荐使用英文)点击Continue
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-65e6d8077bb4a200.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/661/format/webp)
21.点击进入修改地区和时间
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-3513bd0c1292bdaf.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/679/format/webp)
呆在中国这块地,就选择Asia和Shanghai,点击Done完成
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-cd984db3e18a55ad.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/793/format/webp)
22.这一步配置网络
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-9b765d19401b74a2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/683/format/webp)
先打开开关,再点击Configure进入
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-a197c308ab3c05ae.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/783/format/webp)
进行勾选,自动连接网络
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-4166bc34820f6e31.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/735/format/webp)
进入IPv4首先选择Manual(手动)、再点击add配置IP地址、然后配置DNS,完成后点击save保存
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-734d884e577dfdb6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/746/format/webp)
修改主机名(实验环境: 随意 ;生产环境: 某某地区-某某IDC-某某业务--某某服务--某某IP地址 )点击Done完成
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-5b2da3dae6e481fd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/794/format/webp)
23.进入安全选项
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-63aafc4825835993.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/649/format/webp)
可以自己配置暂时不需要选择关闭,完成点击Done
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-66d1b85539501819.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/652/format/webp)
24.进入KDUMP
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-381232455969c5c2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/645/format/webp)
内核奔溃能怎们办,选择关闭它
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-a3cf1bc20a1b5996.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/679/format/webp)
25.进入磁盘分区
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-16bbf1f49b730a1c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/553/format/webp)
选择我要手动分区,点击Done
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-36cca8c301133bea.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/454/format/webp)
选择基本分区,点击+
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-01f849a99858f620.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/404/format/webp)
挂载点有swap内存分配1G(合理分配)
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-9cdad2e418f7fd8a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/367/format/webp)
选择/boot目录内存分配1G(合理分配)
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-1a2f816b952fab9f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/360/format/webp)
剩余所有内存分配给/目录,不用填
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-1adffd00eae0ee3c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/339/format/webp)
磁盘分区完成,点击Done
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-1fa94d6822f3775e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/804/format/webp)
对磁盘进行格式化操作,点击Accept Changes
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-70e5376ed2ba2ed5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/742/format/webp)
26.进入选择
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-b236f46a62846c40.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/607/format/webp)
选择最小化(拒绝占用内存),勾选工具
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-62c1ebb71d62fccd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/783/format/webp)
27.等待系统配置完毕
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-40a4844c71683c8b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/675/format/webp)
此时系统全部配置完毕,点击Begin Inatallation开始安装
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-4b33394ef8db7bfa.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/693/format/webp)
28.设置超级用户root密码(练习时随意,企业中是最高秘密)
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-820fd441bd7bd7e1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/573/format/webp)
设置密码要复杂(建议123456),点击Done完成
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-675e73c83bba023d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/789/format/webp)
等待进度条加载完毕,系统重启(安装完毕)
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-fbeab8597a750df5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/585/format/webp)
加载完成,点击Reboot
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-592ba9c30dbbe107.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/695/format/webp)
29.系统重启完成,输入root用户名,输入密码123456,出现如下画面表示安装成功
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-aa0c44418c497cd3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/535/format/webp)
30.VMware快照:选择拍取快照是为了保留一个备份,删除系统后可用于恢复
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-5651916bb92d7c36.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/853/format/webp)
尝试操作删除系统,删除系统的命令
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-8d011d58d3530937.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/551/format/webp)
系统删除成功
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-89ff3fac60bb8393.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/536/format/webp)
然后别害怕:在虚拟机选择快照,恢复此前系统
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-14b259b901700594.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/702/format/webp)
![技术图片](https://upload-images.jianshu.io/upload_images/18890677-99e21517ec115cd5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/708/format/webp)
学习Bash Shell基础
以上是关于LInux系统@安装CentOS7虚拟机的主要内容,如果未能解决你的问题,请参考以下文章