心随我愿 發表於 2023-8-23 00:00:00

Linux系列教程之虚拟机中安装Centos7.0

<p>
        本次教程的前提条件是您得安装好VM软件和Xshell。对应软件的下载请自行百度!如果exe都不会安装,请关闭本页面!</p>
<p>
        第一步、下载镜像</p>
<p>
        阿里云开源镜像站:http://mirrors.aliyun.com/</p>
<p>
        选择centos进入 如下图:</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/69b8c704c6f36249ac8ca4175b2c3105.jpg" width="995"></p>
<p>
        再选择isos(镜像目录)</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/71ed6e99bb5d36aa6f471367d6878a69.jpg" width="556"></p>
<p>
        继续下一步,只有一个目录,进入即可</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/c72a60300748e54efa3a08c177aab96d.jpg" width="677"></p>
<p>
        进去以后如图:</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/a28f910dd01b76b401cb51ac31e0dfa5.jpg" width="810"></p>
<p>
        对于初学者来说,这么多的镜像着实不好分辨。</p>
<p>
        其中,Centos-7-x86_64 表示这个是镜像叫centos,版本号为7,支持64位(附上百科链接:http://dwz.cn/3t9V5a)。</p>
<p>
        后面的名称,我下面为大家一一介绍下:</p>
<p>
        DVD:普通安装版,需安装到计算机硬盘才能用。文件比较大,包含一系列常用的软件。适合在虚拟机中安装学习。安装的时候可以选择性的安装。</p>
<p>
        Everything:包括各种packages。太大,挺多东西暂时用不到,不推荐。</p>
<p>
        LiveGNOME:GNOME桌面版。</p>
<p>
        LiveKDE:KDE桌面版。</p>
<p>
        Minimal:最小安装版,一般文本编辑器都没有,不推荐。</p>
<p>
        NetInstall:这个是网络安装的启动盘。</p>
<p>
        另外,.iso代表着直接下载镜像,.torrent是种子文件。阿里的下载很快的,直接下载iso就行。</p>
<p>
        我们本次教程使用的是:</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/21ea108894990b92f2d73bce5a0cd7f1.jpg" width="233"></p>
<p>
        大家直接点击下载即可。放任他飞翔,让我们教程继续。</p>
<p>
        第二步、创建虚拟机</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/075047c27d42243b2a66769c1514827a.jpg" width="940"></p>
<p>
        首先,点击创建新的虚拟机。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/37a401af7d4109e6043db51917423d19.jpg" width="503"></p>
<p>
        会出现这个界面,点击下一步。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/f0a04b833a9475285196f0f4bd66e7a0.jpg" width="503"></p>
<p>
        此处选择稍后安装操作系统。然后点击下一步。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/b5718dbffcd44382b78eb44d510e60a5.jpg" width="503"></p>
<p>
        如图,选择好以后点击下一步。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/b1ffea9127f0224e5d9296fb2a5de7a4.jpg" width="503"></p>
<p>
        设置好名称和位置。点击下一步。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/3fa91642a0b019077341d3787fb7498e.jpg" width="503"></p>
<p>
        学习用,20G就够了,继续下一步。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/47380375cac3732658bcc81be22c6e52.jpg" width="503"></p>
<p>
        此处,需要点击自定义硬件!请注意!!!</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/ac0b315364c860c0fa4f789184106b0c.jpg" width="735"></p>
<p>
        内存最少要选择628MB,建议选择1G。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/3a419b273312d39f87ac4af337aeb844.jpg" width="735"></p>
<p>
        CPU建议配置2核。虚拟化引擎如图所示即可。需要深入了解的可以百度下。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/0af676f14627e35ef367d7a209967a73.jpg" width="735"></p>
<p>
        光驱此处选择使用ISO映像文件,选择我们刚才下载的ISO。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/3959b33cc8524d244fdc4888c8885839.jpg" width="735"></p>
<p>
        网络适配器这块一定要选择桥接模式:直接连接物理网络。因为往后我们需要用XSHELL连接我们的虚拟机,所以需要让虚拟机有一个自己单独的局域网IP。其中,NAT模式和我们的本机共享IP,不适用。仅主机模式无法访问外网。因此,只能选择桥接模式。</p>
<p>
        至此,我们的虚拟机的硬件配置就OK了,直接点击关闭即可!</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/065e7f97e35bf10e28239b871d1173ed.jpg" width="503"></p>
<p>
        然后点击完成。</p>
<p>
        第三步、运行虚拟机,安装Centos</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/3e366fff052fa1be76fd639228b9b8cb.jpg" width="940"></p>
<p>
        点击开启此虚拟机。进入到如图所示的界面:</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/2f0cfd538d5204b67ce1d80929e77b32.jpg" width="860"></p>
<p>
        鼠标点击下虚拟机,让我们进入虚拟机。如果需要跳出来请按 ctrl+alt</p>
<p>
        此处我们用上下键选择Install Centos7 点击以后,会短暂的黑屏一下。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/e3e3fe9988550741029100e974cf5acb.jpg" width="940"></p>
<p>
        敲下回车键。或者等待自动安装。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/ce7ea41aed688c54047fab5fe65991e0.jpg" width="800"></p>
<p>
        开始进入到图形化安装界面,第一步选择语言。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/7b873dc30f5bb2196d4925fbe7d63712.jpg" width="800"></p>
<p>
        拉到最后,选择中文,点击继续。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/6caaf751e61e76d2852f436843b81946.jpg" width="800"></p>
<p>
        往下滑,点击安装位置。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/b4d0df698b4483d4013e2349660379c5.jpg" width="800"></p>
<p>
        选择自动配置分区即可。点击完成。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/ce5ed3651337bc0756e969d13ba672af.jpg" width="800"></p>
<p>
        下面很重要!!!</p>
<p>
        下面很重要!!!</p>
<p>
        下面很重要!!!</p>
<p>
        重要的事情说三遍!!</p>
<p>
        点击软件选择!</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/d147330de52e5a192fb2056f92359b72.jpg" width="800"></p>
<p>
        各类基本环境的区别看下面的灰色字体介绍就能明白,在此不多做介绍。本次教程,我们选择基本网页服务器。这个环境基本满足我们日后学习所需了。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/f62cfd3d18fbaf8c793ac83bdaaeb6dc.jpg" width="700"></p>
<p>
        对于右边的已选环境的附加选项我们暂时不用理会。直接点击完成即可。</p>
<p>
        然后点击开始安装。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/157438879b35ab669634bebed9b69e18.jpg" width="800"></p>
<p>
        这边提示我们ROOT密码未设置,我们点击下,进入设置。创建用户暂时不需要。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/291c8b656bf1a6c5990415f14c9e49c2.jpg" width="1020"></p>
<p>
        这边如果密码太简单会提示我们,并且需要点击二次完成。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/2bc688ab64a0c0d17a5e5358d8fe6863.jpg" width="800"></p>
<p>
        设置完成以后我们等待安装完成。</p>
<p>
        让我们打把LOL,耐心的等一等。</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/1351ef5e80e3addb98f9f2a4e394ad51.jpg" width="800"></p>
<p>
        点击重启以后等待即可,不需要进行任何操作!</p>
<p align="center">
        <img style="max-width:100%!important;height:auto!important;"title="Linux系列教程之虚拟机中安装Centos7.0" alt="Linux系列教程之虚拟机中安装Centos7.0" align="" border="0" src="https://zhuji.jb51.net/uploads/img/202305/6d4cc7ccc07a3673b0b1adb07b167aa6.jpg" width="1240"></p>
<p>
        出现如上界面代表安装成功啦!</p>
<p>
        安装教程到此为止!</p>
<p>
        下期,我们将给大家讲解下如何用Xshell 连接我们的虚拟机。以及一些基本介绍和基本命令!</p>
<p>
        喜欢的话还请关注下我谢谢!也可以添加微信公众号:Thans  近期我会发布Linux入门的一系列教程!欢迎大家关注!谢谢!</p>
<p>
        以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持服务器之家。</p>
<p>
        原文链接:http://www.jianshu.com/p/e5497f8faf03</p>
頁: [1]
查看完整版本: Linux系列教程之虚拟机中安装Centos7.0