黑基Web安全攻防班
安基网 首页 IT技术 网络管理 查看内容

Linux虚拟机Virtual Box的安装和操作系统CentOS的安装教程

2018-1-22 12:44| 投稿: xiaotiger |来自: 互联网

摘要: 操作系统和虚拟机的选择操作系统的选择redhat商用版:red hat enterprise linux,即RHEL,主攻服务器,不打桌面操作。适合商用Fedora : redhat的另一个分支,即民用社区版,免费。 适用于学生学习CentOS: 社区企业操 ...

免责声明:本站系公益性非盈利IT网站,本文由投稿者转载自互联网,文末已注明出处,其内容和图片版权归原作者所有,文中所述不代表本站观点,若有侵权或转载不当之处请从网站右下角联系我们处理。

操作系统和虚拟机的选择

操作系统的选择

redhat商用版:red hat enterprise linux,即RHEL,主攻服务器,不打桌面操作。适合商用

Fedora : redhat的另一个分支,即民用社区版,免费。 适用于学生学习

CentOS: 社区企业操作系统 (Community Enterprise Operating System),是RHEL的clone,但不是100%兼容。目前在国内各大互联网公司应用较广, 适用于商用、深入学习

SuSE: 在国外比较流行, 但国内相对较少,系统稳定可靠。适用于商用Ubuntu: 主打桌面版,是Linux系统下游戏娱乐首选,适用于游戏娱乐用

我们的最终选择CentOS,版本6.9

虚拟机的选择

VMware:老牌、功能齐全、闭源、收费、安装文件大、资源占用大

Virtual Box : 简单易用、主要功能支持、开源、免费、安装文件小、轻资源占用、流畅性好

Virtual PC : 微软自win7主推、社区资源较少、硬件虚拟化、性能更强大

我们的选择是Virtual Box,

操作系统和虚拟机的安装

Virtual Box的安装很简单,基本是下一步下一步

操作系统的安装

1.1新建虚拟电脑 for centos6.x

1.2 内存设定

一般1-2G即可,本机小则设置成1G,若本机内存充足,则建议设置成2G

1.3 创建虚拟磁盘

按默认8G分配即可

1.4 磁盘文件类型选择

因为主要用于熟悉linux环境和基本命令操作,故选择默认即可

1.5 磁盘分配类型选择

视本机实际碰盘情况选择,如果磁盘本身充足或者配置较低,建议选择固定大小。如果磁盘本身紧张或者配置较高,建议动态分配。一般建议动态分配。

1.6 虚拟碰盘目录选择

选择自己本机合适的目录即可,空间够之前的8G大小设定为宜。

到此,第一阶段配置成完成,第二阶段为启动安装前的配置阶段。

2.1配置光盘启动为第一顺序

打开设置,进入系统菜单,看到现状

2.2配置光盘的镜像,指向我们的镜像文件

点击属性右侧的小光盘

2.3配置网络链接方式为NAT,方便后续系统安装过程中的一些联网操作

第2阶段配置完成,双击左侧的虚拟机名字,进入第3阶段-安装。

3.1 双击左侧虚拟机名字,进入正式安装(不用做任何操作,10s后进入自动安装即可)

3.2 进入自动安装模式的安装界面

3.3再安装界面将光盘系统安装到硬盘

3.4点击next继续与语言选择

3.5键盘习惯选择

3.6 驱动器类型选择

3.7覆盖或删除掉之前的虚拟碰盘指定的路径下的所有数据

选择yes,discard any data

3.8 hostname设置

3.9时区选择-中国/上海

3.10设置root的用户名和密码

3.11选择替换或删除之前的数据文件

确定写入数据即可

3.12选择write changes to disk

3.13数据正在拷贝中,坐等进度条完成

3.14安装完成,即将重启

点击界面的close就行

从界面中关闭系统,便于后边更改系统启动顺序

第3阶段配置完成,进入第4阶段-使用前的配置。

4.1调整系统启动加载介质的顺序,将硬盘放在第一,将光盘置在第二。(此时的系统已安装到硬盘中)

4.2双击左侧虚拟机图标再次启动系统,进入正式使用前的基本配置

用root帐户登陆后修改初始化模式,将5=x11桌面版改成3=多用户命令行模式

第4阶段结束,可以正式使用了

用之前设置的root用户名和密码登陆

, groupId: 6513299189655405063, itemId: 6513299189655405063, type: 2, subInfo: { isOriginal: false, source: IT生涯, time: 2018-01-21 08:47:23 }, tagInfo: { tags: [{"name":"Linux"},{"name":"CentOS"},{"name":"VirtualBox"},{"name":"RHEL"},{"name":"红帽公司"}], groupId: 6513299189655405063, itemId: 6513299189655405063, repin: 0, }, has_extern_link: 0 }, commentInfo: { groupId: 6513299189655405063, itemId: 6513299189655405063, comments_count: 1, ban_comment: 0 }, mediaInfo: { uid: 50263900978, name: IT生涯, avatar: //p1.pstatp.com/large/2c640019045461989e6f, openUrl: /c/user/50263900978/, follow: false }, pgcInfo: {"media_info":{"open_url":"/c/user/50263900978/","avatar_url":"https://p1.pstatp.com/large/2c640019045461989e6f","media_id":1573239534027789,"name":"IT生涯","user_verified":false},"articles":[{"item_id":"6513676739959325188","url":"/item/6513676739959325188","title":"linux ssh免密登录操作教程"},{"item_id":"6513673474207121927","url":"/item/6513673474207121927","title":"linux ps及netstat命令详细解析"},{"item_id":"6513673219482845700","url":"/item/6513673219482845700","title":"分享:linux服务器文件自动备份脚本详情"},{"item_id":"6513672998656934403","url":"/item/6513672998656934403","title":"安卓开发屏幕适配解决方案"}]}, feedInfo: { url: /api/pc/feed/, category: __all__, initList: [{"media_avatar_url":"//p3.pstatp.com/large/470a0003df47ff463d66","is_feed_ad":false,"is_diversion_page":false,"title":"Excel表格轻轻松松完美转换成Word文档","single_mode":false,"gallary_image_count":0,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6513501902448099848/","source":"进城的陈老实","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":0,"comments_count":6,"group_id":"6513501902448099848","is_related":true,"media_url":"/c/user/62245750135/"},{"comments_count":12,"media_avatar_url":"//p1.pstatp.com/large/13550018a452238fb80f","is_feed_ad":false,"is_diversion_page":false,"title":"Excel中最常用的12个函数|职场人做报表加速神器","single_mode":true,"gallary_image_count":15,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6513344440013160973/","source":"耀说","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":18,"image_url":"//p3.pstatp.com/list/190x124/5b40000195cc5d0baaac","group_id":"6513344440013160973","is_related":true,"media_url":"/c/user/54829141290/"},{"comments_count":127,"media_avatar_url":"//p8.pstatp.com/large/59490005007a4b768ed1","is_feed_ad":false,"is_diversion_page":false,"title":"电脑装系统如此简单?U盘重做系统直接让你的电脑速度由慢变快?","single_mode":true,"gallary_image_count":15,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6513057995906089485/","source":"3C数码详解专家","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":143,"image_url":"//p3.pstatp.com/list/190x124/59490005dbec69a12d95","group_id":"6513057995906089485","is_related":true,"media_url":"/c/user/83980740560/"},{"comments_count":0,"media_avatar_url":"//p3.pstatp.com/large/4e6500049d45ac1a374f","is_feed_ad":false,"is_diversion_page":false,"title":"高效并发一 Java内存模型与Java线程(绝对干货)","single_mode":true,"gallary_image_count":2,"middle_mode":true,"has_video":false,"video_duration_str":null,"source_url":"/group/6512353251285795335/","source":"Java高级架构师","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":0,"image_url":"//p3.pstatp.com/list/190x124/594700007df04ec89440","group_id":"6512353251285795335","is_related":true,"media_url":"/c/user/80924038711/"},{"comments_count":12,"media_avatar_url":"//p3.pstatp.com/large/2c6a0008798195f0c6f9","is_feed_ad":false,"is_diversion_page":false,"title":"win10电脑的“快速启动”模式你知多少?","single_mode":true,"gallary_image_count":10,"middle_mode":true,"has_video":false,"video_duration_str":null,"source_url":"/group/6511708754092753416/","source":"钰翔数码","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":0,"image_url":"//p3.pstatp.com/list/190x124/593f000016e0da32e605","group_id":"6511708754092753416","is_related":true,"media_url":"/c/user/62988720962/"},{"comments_count":103,"media_avatar_url":"//p1.pstatp.com/large/5681000337fd888b62d8","is_feed_ad":false,"is_diversion_page":false,"title":"数据恢复2:U盘坏了怎么办,我的方法可能可以起死回生","single_mode":true,"gallary_image_count":11,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6511545438816961038/","source":"奇凡想当然","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":22,"image_url":"//p1.pstatp.com/list/190x124/59390004618a1715b21d","group_id":"6511545438816961038","is_related":true,"media_url":"/c/user/1437070467/"},{"comments_count":892,"media_avatar_url":"//p3.pstatp.com/large/1bf3000d9ff991ed4ac1","is_feed_ad":false,"is_diversion_page":false,"title":"工作再忙,也要学会这 10 个Excel快捷键","single_mode":true,"gallary_image_count":10,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6512593091097002500/","source":"巧谈人生","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":119,"image_url":"//p1.pstatp.com/list/190x124/594300059501338c831e","group_id":"6512593091097002500","is_related":true,"media_url":"/c/user/59180287803/"},{"comments_count":60,"media_avatar_url":"//p9.pstatp.com/large/150d000224180188ab86","is_feed_ad":false,"is_diversion_page":false,"title":"160元买不能用WIFI的iPhone4s划算吗?关键系统是亮点!","single_mode":true,"gallary_image_count":5,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6511866358488105485/","source":"数码小白","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":1,"image_url":"//p3.pstatp.com/list/190x124/593f00011d36a2a06ba6","group_id":"6511866358488105485","is_related":true,"media_url":"/c/user/54138460239/"},{"comments_count":16,"media_avatar_url":"//p3.pstatp.com/large/59390000ce870a65981c","is_feed_ad":false,"is_diversion_page":false,"title":"C语言入门到精通开发《蠕虫病毒》","single_mode":true,"gallary_image_count":1,"middle_mode":true,"has_video":false,"video_duration_str":null,"source_url":"/group/6511980374476718595/","source":"C和C佳佳入门编程语言","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":0,"image_url":"//p3.pstatp.com/list/190x124/59420002e3df7eea40a5","group_id":"6511980374476718595","is_related":true,"media_url":"/c/user/61488473782/"},{"media_avatar_url":"//p4.pstatp.com/large/54ed001edc597a4db8e7","is_feed_ad":false,"is_diversion_page":false,"title":"这里有一百道Linux笔试题,能拿90分以上的都去了BAT","single_mode":false,"gallary_image_count":0,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6511809188065182215/","source":"IT小明","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":0,"comments_count":63,"group_id":"6511809188065182215","is_related":true,"media_url":"/c/user/74887486145/"},{"comments_count":15,"media_avatar_url":"//p1.pstatp.com/large/568800048c0376462c5b","is_feed_ad":false,"is_diversion_page":false,"title":"linux之25条命令玩转Linux","single_mode":true,"gallary_image_count":3,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6512587967477842435/","source":"HelloTeacher陈","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":2,"image_url":"//p9.pstatp.com/list/190x124/594300057961bd1c794b","group_id":"6512587967477842435","is_related":true,"media_url":"/c/user/59325412265/"},{"comments_count":20,"media_avatar_url":"//p3.pstatp.com/large/4719000084e185e23e84","is_feed_ad":false,"is_diversion_page":false,"title":"干货!Excel 表格的所有公式的操作方法看这篇就够了!","single_mode":true,"gallary_image_count":15,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6513323927610065411/","source":"office技巧分享","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":9,"image_url":"//p1.pstatp.com/list/190x124/5b3f0001acfc2eab9d3e","group_id":"6513323927610065411","is_related":true,"media_url":"/c/user/77371300393/"},{"comments_count":71,"media_avatar_url":"//p4.pstatp.com/large/50aa000356b49be004a7","is_feed_ad":false,"is_diversion_page":false,"title":"不需要安装任何开发环境,在浏览器里面就能在线练习31种编程语言","single_mode":true,"gallary_image_count":9,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6512027159924572675/","source":"冰尘无极","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":0,"image_url":"//p3.pstatp.com/list/190x124/59400003e4bc249987ac","group_id":"6512027159924572675","is_related":true,"media_url":"/c/user/74999065942/"},{"comments_count":419,"is_related":true,"is_feed_ad":false,"is_diversion_page":false,"title":"如何用Word文档快速更换证件照背景色?","single_mode":true,"gallary_image_count":8,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6512997659433763079/","source":"悟空问答","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":0,"image_url":"//p3.pstatp.com/list/190x124/551800063d70f6f2578f","group_id":"6512997659433763079"},{"comments_count":12,"media_avatar_url":"//p3.pstatp.com/large/3e5d00003bd2d21c4b76","is_feed_ad":false,"is_diversion_page":false,"title":"Excel查找重复值神技能,使vlookup如虎添翼,逼格再生一级!","single_mode":true,"gallary_image_count":5,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6513514647058907662/","source":"Excel控","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":5,"image_url":"//p3.pstatp.com/list/190x124/5b430000de7af3e4ecff","group_id":"6513514647058907662","is_related":true,"media_url":"/c/user/71137123502/"},{"comments_count":215,"media_avatar_url":"//p1.pstatp.com/large/5694000171df5c4cf6b3","is_feed_ad":false,"is_diversion_page":false,"title":"拿着这五张图,走哪都是计算机高手!bios中英文对照表","single_mode":true,"gallary_image_count":5,"middle_mode":false,"has_video":false,"video_duration_str":null,"source_url":"/group/6512704209710744072/","source":"熊小进","more_mode":null,"article_genre":"article","has_gallery":false,"video_play_count":65,"image_url":"//p3.pstatp.com/list/190x124/59470003d0d639dc8dd2","group_id":"6512704209710744072","is_related":true,"media_url":"/c/user/82224069330/"}] }, shareInfo: { shareUrl: https://m.toutiao.com/item/6513299189655405063/, abstract: 操作系统和虚拟机的选择操作系统的选择redhat商用版:red hat enterprise linux,即RHEL,主攻服务器,不打桌面操作。适合商用Fedora : redhat的另一个分支,即民用社区版,免费。

小编推荐:欲学习电脑技术、系统维护、网络管理、编程开发和安全攻防等高端IT技术,请 点击这里 注册账号,公开课频道价值万元IT培训教程免费学,让您少走弯路、事半功倍,好工作升职加薪!



免责声明:本站系公益性非盈利IT网站,本文由投稿者转载自互联网,文末已注明出处,其内容和图片版权归原作者所有,文中所述不代表本站观点,若有侵权或转载不当之处请从网站右下角联系我们处理。


鲜花

握手

雷人

路过

鸡蛋

相关阅读

最新评论

最新

返回顶部