情感美文

CentOS 6 安装后基本配置

作者:本站 | 分类:情感控制| 浏览:153

	CentOS 6 安装后基本配置

1.网络配置(1)命令配置#  //ip地址、子网掩码#  //网关#hostnamecentos  //计算机名(2)文件配置1修改IP地址修改对应网卡的IP地址的配置文件#vi/etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0 (描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为eth0)BOOTPROTO=static (设置网卡获得ip地址的方式,可能的选项为static,dhcp或bootp,分别对应静态指定的ip地址,通过dhcp协议获得的ip地址,通过bootp协议获得的ip地址)BROADCAST= (对应的子网广播地址)HWADDR=00:07:E9:05:E8:B4 (对应的网卡物理地址)IPADDR= (如果设置网卡获得ip地址的方式为静态指定,此字段就指定了网卡对应的ip地址)IPV6INIT=no (开启或关闭IPv6;关闭no,开启yes)IPV6_AUTOCONF=no (开启或关闭IPv6自动配置;关闭no,开启yes)NETMASK= (网卡对应的网络掩码)NETWORK= (网卡对应的网络地址)ONBOOT=yes (系统启动时是否设置此网络接口,设置为yes时,系统启动时激活此设备)2修改网关修改对应网卡的网关的配置文件#vi/etc/sysconfig/networkNETWORKING=yes (表示系统是否使用网络,一般设置为yes。 如果设为no,则不能使用网络,而且很多系统服务程序将无法启动)HOSTNAME=centos (设置本机的主机名,这里设置的主机名要和/etc/hosts中设置的主机名对应)GATEWAY= (设置本机连接的网关的IP地址。

例如,网关为)3修改DNS修改对应网卡的DNS的配置文件#vi/etc/ (域名服务器) (域名服务器)4重新启动网络配置#servicenetworkrestart或#/etc//networkrestart2.软件源配置国内速度较快的常用更新源如下:http:///centos/163-网易http:///centos/中国移动通信(山东移动)http:///centos/中国科学技术大学http:///centos/东北大学编辑yum配置文件:#vi/etc//[base]name=CentOS-$releasever-Basemirrorlist=http:///release=$releaseverarch=$basearchrepo=os#baseurl=http:///centos/$releasever/os/$basearch/baseurl=http:///centos/$releasever/os/$basearch/http:///centos/$releasever/os/$basearch/http:///centos/$releasever/os/$basearch/http:///centos/$releasever/os/$basearch/gpgcheck=1gpgkey=http:///centos/RPM-GPG-KEY-CentOS-6#releasedupdates[updates]name=CentOS-$releasever-Updatesmirrorlist=http:///release=$releaseverarch=$basearchrepo=updates#baseurl=http:///centos/$releasever/updates/$basearch/baseurl=http:///centos/$releasever/updates/$basearch/http:///centos/$releasever/updates/$basearch/http:///centos/$releasever/updates/$basearch/http:///centos/$releasever/updates/$basearch/gpgcheck=1gpgkey=http:///centos/RPM-GPG-KEY-CentOS-6#additionalpackagesthatmaybeuseful[extras]name=CentOS-$releasever-Extrasmirrorlist=http:///release=$releaseverarch=$basearchrepo=extras#baseurl=http:///centos/$releasever/extras/$basearch/baseurl=http:///centos/$releasever/extras/$basearch/http:///centos/$releasever/extras/$basearch/http:///centos/$releasever/extras/$basearch/http:///centos/$releasever/extras/$basearch/gpgcheck=1gpgkey=http:///centos/RPM-GPG-KEY-CentOS-6#additionalpackagesthatextendfunctionalityofexistingpackages[centosplus]name=CentOS-$releasever-Plusmirrorlist=http:///release=$releaseverarch=$basearchrepo=centosplus#baseurl=http:///centos/$releasever/centosplus/$basearch/baseurl=http:///centos/$releasever/centosplus/$basearch/http:///centos/$releasever/centosplus/$basearch/http:///centos/$releasever/centosplus/$basearch/http:///centos/$releasever/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=http:///centos/RPM-GPG-KEY-CentOS-6#contrib-packagesbyCentosUsers[contrib]name=CentOS-$releasever-Contribmirrorlist=http:///release=$releaseverarch=$basearchrepo=contrib#baseurl=http:///centos/$releasever/contrib/$basearch/baseurl=http:///centos/$releasever/contrib/$basearch/http:///centos/$releasever/contrib/$basearch/http:///centos/$releasever/contrib/$basearch/http:///centos/$releasever/contrib/$basearch/gpgcheck=1enabled=0gpgkey=http:///centos/RPM-GPG-KEY-CentOS-6然后使用如下命令更新到最新系统:#rpmimport/etc/pki/rpm-gpg-key*3.安装语言包从安装盘进行安装,找到对应rpm包:可以通过yum进行安装,安装办法为:#yumgroupinstalllanguage-support在上面的命令中,language是下列之一:assamese,bengali,chinese,gujarati,hindi,japanese,kannada,korean,malayalam,marathi,oriya,punjabi,sinhala,tamil,thai,或telegu。 4.解压缩软件#yuminstallunrarunzipp7zip-fullpostedon2012-12-2322:57阅读(583)所属分类:。

上一篇: Mac技巧之让U盘、移动硬盘在苹果电脑和Windows PC都能识别读写,且支持4GB大文件:exFAT格式    下一篇:没有了
最近更新
精彩推荐
友情链接