A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© 曹睿翔 金牌黑马   /  2013-4-21 23:05  /  1335 人查看  /  4 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

本帖最后由 曹睿翔 于 2013-4-21 23:58 编辑 <br /><br /><div align="left"><b><font size="4">CentOS</font> </b></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp;什么是<font face="Times New Roman">CentOS</font><font face="宋体">? 百度百科 </font>http://baike.baidu.com/view/26404.htm</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp;为什么要选择<font face="Times New Roman">CentOS</font><font face="宋体">?</font></div><div align="left"><b><font size="4">特点:</font></b></div><div align="left">&nbsp; &nbsp; &nbsp; 1<font face="宋体">.可以把</font><font face="Times New Roman">CentOS</font><font face="宋体">理解为</font><font face="Times New Roman">Red Hat AS</font><font face="宋体">系列!它完全就是对</font><font face="Times New Roman">Red Hat AS</font><font face="宋体">进行改进后发布的!各种操作、使用和</font><font face="Times New Roman">RED HAT</font><font face="宋体">没有区别!</font><br>&nbsp; &nbsp; &nbsp; 2<font face="宋体">.</font><font face="Times New Roman">CentOS</font><font face="宋体">完全免费,不存在</font><font face="Times New Roman">RED HAT AS4</font><font face="宋体">需要序列号的问题。</font><br>&nbsp; &nbsp; &nbsp; 3<font face="宋体">.</font><font face="Times New Roman">CentOS</font><font face="宋体">独有的</font>yum<font face="宋体">命令支持在线升级</font>,可以即时更新系统,不像<font face="Times New Roman">RED HAT</font><font face="宋体">那样需要花钱购买支持服务!</font><br>&nbsp; &nbsp; &nbsp; 4<font face="宋体">.</font><font face="Times New Roman">CentOS</font><font face="宋体">修正了许多</font><font face="Times New Roman">RED HAT AS</font><font face="宋体">的</font><font face="Times New Roman">BUG</font><font face="宋体">!</font><br>&nbsp; &nbsp; &nbsp; 5<font face="宋体">.</font><font face="Times New Roman">CentOS</font><font face="宋体">版本说明:</font><font face="Times New Roman">CentOS3.1 </font><font face="宋体">等同于 </font><font face="Times New Roman">RED HAT AS3 Update1 CentOS3.4 </font><font face="宋体">等同于 </font><font face="Times New Roman">RED HAT AS3 Update4 CentOS4.0 </font><font face="宋体">等同于 </font><font face="Times New Roman">RED HAT AS4</font></div><div align="left"><font size="5"><strong>正题:</strong></font></div><div align="left">&nbsp; &nbsp; 可以安装CentOS minimal<font face="宋体">版</font>,最新的才300M<font face="宋体">,不占电脑资源,不过是不带</font><font face="Times New Roman">X WindowSystem</font><font face="宋体">的,接下来我会讲怎么安装</font><font face="Times New Roman">X Window</font><font face="宋体">的</font></div><div align="left">&nbsp; &nbsp; 大家可以百度,也可以去官方网站下载minimal</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; 1、先下载你喜欢的minimal版本</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;下边博客有提供</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; 2、安装,过程很简单,下面博客会提到。</div><div align="left">&nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;为了不占用空间,不添加图片,援引下边博客方便</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; 3、图形化界面不建议用了,安装<font face="Times New Roman">linux</font><font face="宋体">练的就是命令,机器够用的话直接安装:</font>bin-DVD<font face="宋体">:</font> </div><div align="left">&nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;这个文件包含了<font face="Times New Roman">CentOS</font><font face="宋体">完整的功能,由于</font><font face="Times New Roman">bin-DVD1.iso(4G) + bin-DVD2.iso(1G) = 5G</font></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<strong> &nbsp;Ps<font face="宋体">:用段时间后想通过图形化界面验证效果的,接着看几步搞定</font></strong></div><div align="left">&nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1<font face="宋体">、先打开网卡(默认关闭)</font></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;连接网络<font face="Times New Roman">: </font></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CentOS minimal.iso<font face="宋体">安装好后,进入终端,默认是不开网络的</font><font face="Times New Roman">, </font></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;首先启用网卡<font face="Times New Roman">, </font><font face="宋体">自动获取</font><font face="Times New Roman">ip. </font></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ifconfig eth0 up  &nbsp;<a href="http://www.2cto.com" target="_blank">www.2cto.com</a>  </div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dhclient eth0&nbsp;</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 这时候再 <font face="Times New Roman">ifconfig </font><font face="宋体">一下,就可以看见已经自动分配好</font><font face="Times New Roman">IP</font><font face="宋体">了 </font></div><div align="left">&nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2<font face="宋体">、安装</font>VIM</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;# yum install vim-enhanced</div><div align="left">&nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3<font face="宋体">、</font>安装<font face="Times New Roman">X Window: </font></div><div align="left">&nbsp;    &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #yum groupinstall "X Window System"&nbsp;</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4<font face="宋体">、</font>安装<font face="Times New Roman">gnome</font><font face="宋体">: </font></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yum groupinstall "Desktop"&nbsp;</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5<font face="宋体">、</font>然后我们安装中文语言 </div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;yum groupinstall "Chinese Support"&nbsp;</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6<font face="宋体">、</font>最关键的一步了,启动<font face="Times New Roman">gnome </font></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;startx&nbsp;</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 然后按下<font face="Times New Roman">Ctrl+Alt+F2, OK</font><font face="宋体">,进入了桌面</font><font face="Times New Roman">. </font></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7<font face="宋体">、</font>要下次自动启动<font face="Times New Roman">gnome</font><font face="宋体">: </font></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;修改<font face="Times New Roman">/etc/inittab</font><font face="宋体">文件中的 </font></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;id:3:initdefault&nbsp;</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 将<font face="Times New Roman">3</font><font face="宋体">改为</font><font face="Times New Roman">5 </font></div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;id:5:initdefault&nbsp;</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;重新启动系统<font face="Times New Roman">.</font></div><div align="left">  </div><div align="left"><b>援引博客</b>:</div><div align="left">&nbsp; &nbsp; &nbsp; &nbsp;教你从 字符界面重新安装<font face="Times New Roman">CentOS 6.3</font><font face="宋体">操作系统 </font>  <a href="http://youyizhimen.blog.163.com/blog/static/1709172672012112625438768/" target="_blank">http://youyizhimen.blog.163.com/blog/static/1709172672012112625438768/</a></div><div align="left">&nbsp;(这个博客的操作我试了,没问题,安装很简单,<font color="#ff0000">需要注意步骤</font>、<font color="#ff0000">以及用<font face="Times New Roman">space</font><font face="宋体">去选择</font></font><font face="宋体">,</font><font color="#ff0000"><font face="宋体">而不是</font><font face="Times New Roman">enter</font></font><font face="Times New Roman">)</font></div><div align="left"> CentOS minimal<font face="宋体">版安装图形界面的步骤:</font></div><div align="left"> <url><a href="http://www.2cto.com/os/201211/167638.html</url>" target="_blank">http://www.2cto.com/os/201211/167638.html</a></url></div><div align="left"><font color="#ff0000"><strong><font size="4">声明</font></strong></font>:</div><div align="left"><strong>大家为了爱好</strong>,<strong>也是为了后期进入黑马后能有很快提升才去练习</strong>,<strong>所以简单就好</strong>,<strong>直接命令行练习</strong>,很爽的,接下来我会不定时跟大家谈论相关命令。
<br>
<span style="float:left;margin-right:5px"><font size="5"><font color="#800080">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;<marquee width="90%" behavior="alternate" scrollamount="3">本版块即将推出<font face="Times New Roman">java</font><font face="宋体">解题送分活动</font> ,<font face="宋体">敬请期待</font> !</marquee></font></font></span><strong><font size="3"><font color="#ff0000"><br> </font></font></strong></div><div align="left"><strong><font size="3"><font color="#ff0000">   </font></font></strong></div><strong><font size="3"><font color="#ff0000">
</font></font></strong>

4 个回复

倒序浏览
我表示正在用centos6.4.。算是通道中人了
回复 使用道具 举报
肖川 发表于 2013-4-21 23:17
我表示正在用centos6.4.。算是通道中人了

http://bbs.itheima.com/thread-47011-1-1.html
哥们既然如此,顶这个贴吧,哈哈,以后活动会很多
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马