最小化安装CentOS 6.X之后需要做的配置
<p><strong style=" font-size: 14px;">一, /boot分区备份</strong><span style=" font-size: 14px;"> </span><br style=" font-size: 14px;"/><br style=" font-size: 14px;"/><strong style=" font-size: 14px;">二,网络配置</strong><span style=" font-size: 14px;"> </span><br style=" font-size: 14px;"/><br style=" font-size: 14px;"/><span style=" font-size: 14px;">修改主机名: </span></p><p class="msgborder" style="margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; "><br/>#vi /etc/sysconfig/network <br/>
NETWORKING=yes <br/>
#HOSTNAME=localhost.localdomain <br/>
HOSTNAME=CentOS-1 <br/>
#也可以在这里设置网关 <br/>
#GATEWAY=192。168.30.1 </p><p><br style=" font-size: 14px;"/><span style=" font-size: 14px;">设置网络为DHCP获取 </span></p><p class="msgborder" style="margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; "><br/>
vi /etc/sysconfig/network-scrip/ifcfg-eth0 <br/>
DEVICE="eth0" <br/>
BOOTPROTO="dhcp" <br/>
HWADDR="08:00:27:A7:AB:97" <br/>
NM_CONTROLLED="no" <br/>
ONBOOT="no" <br/>
TYPE="Ethernet" <br/>
UUID="9622f9e1-6218-4c56-9f45-7ae29b477e89" </p><p><br style=" font-size: 14px;"/><span style=" font-size: 14px;">设置静态IP </span></p><p class="msgborder" style="margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; "><br/>
vi /etc/sysconfig/network-scrip/ifcfg-eth0 <br/>
# cat /etc/sysconfig/network-scripts/ifcfg-eth0 <br/>
DEVICE=eth0 <br/>
BOOTPROTO=none <br/>
HWADDR=08:00:27:e2:62:9b <br/>
NM_CONTROLLED=no <br/>
ONBOOT=yes <br/>
TYPE=Ethernet <br/>
IPADDR=192.168.30.223 <br/>
NETMASK=255.255.255.0 <br/>
GATEWAY=192.168.30.1 <br/>
DNS=8.8.8.8 <br/>
USERCTL=no <br/>
IPV6INIT=no </p><p><br style=" font-size: 14px;"/><br style=" font-size: 14px;"/><strong style=" font-size: 14px;">三,安装wget工具</strong><span style=" font-size: 14px;"> </span><br style=" font-size: 14px;"/> </p><p class="msgborder" style="margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; ">
yum install wget</p><p><br style=" font-size: 14px;"/><br style=" font-size: 14px;"/><strong style=" font-size: 14px;">四,源配置</strong><span style=" font-size: 14px;"> </span><br style=" font-size: 14px;"/> </p><p class="msgborder" style="margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; "><br/>
cd /etc/yum.repos.d <br/>
mv CentOS-Base.repo bak-CentOS-Base.repo <br/>
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo <br/>
yum clean all <br/>
yum makecache </p><p><br style=" font-size: 14px;"/><br style=" font-size: 14px;"/><strong style=" font-size: 14px;">五,ssh密钥配置</strong><span style=" font-size: 14px;"> </span><br style=" font-size: 14px;"/><br style=" font-size: 14px;"/><br style=" font-size: 14px;"/><strong style=" font-size: 14px;">六,sudo配置</strong><span style=" font-size: 14px;"> </span><br style=" font-size: 14px;"/><br style=" font-size: 14px;"/><strong style=" font-size: 14px;">七,编译环境和工具的安装</strong><span style=" font-size: 14px;"> </span></p><p class="msgborder" style="margin: 0px auto 3px; padding: 0px 3px; outline: none; line-height: 25.2px; font-size: 14px; clear: both; border-right: 1px solid rgb(0, 153, 204); background: rgb(221, 237, 251); overflow: hidden; border-left: 1px solid rgb(0, 153, 204); word-break: break-all; border-bottom: 1px solid rgb(0, 153, 204); word-wrap: break-word; "><br/>
yum groupinstall "Development Libraries" "Development Tools" </p>
頁:
[1]