|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!1.收集设置
(1)下令设置
#ifconfigeth0192.168.0.2netmask255.255.255.0 //ip地点、子网掩码
#routeadddefaultgw192.168.0.1deveth0 //网关
#hostnamecentos //盘算机名
(2)文件设置
<1>修正IP地点
修正对应网卡的IP地点的设置文件
#vi/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 (形貌网卡对应的设备别号,比方ifcfg-eth0的文件中它为eth0)
BOOTPROTO=static (设置网卡取得ip地点的体例,大概的选项为static,dhcp或bootp,分离对应静态指定的ip地点,经由过程dhcp协定取得的ip地点,经由过程bootp协定取得的ip地点)
BROADCAST=192.168.0.255 (对应的子网播送地点)
HWADDR=00:07:E9:05:E8:B4 (对应的网卡物理地点)
IPADDR=12.168.1.2 (假如设置网卡取得ip地点的体例为静态指定,此字段就指定了网卡对应的ip地点)
IPV6INIT=no (开启或封闭IPv6;封闭no,开启yes)
IPV6_AUTOCONF=no (开启或封闭IPv6主动设置;封闭no,开启yes)
NETMASK=255.255.255.0 (网卡对应的收集掩码)
NETWORK=192.168.1.0 (网卡对应的收集地点)
ONBOOT=yes (体系启动时是不是设置此收集接口,设置为yes时,体系启动时激活此设备)
<2>修正网关
修正对应网卡的网关的设置文件
#vi/etc/sysconfig/network
NETWORKING=yes (暗示体系是不是利用收集,一样平常设置为yes。假如设为no,则不克不及利用收集,并且良多体系办事步伐将没法启动)
HOSTNAME=centos (设置本机的主机名,这里设置的主机名要和/etc/hosts中设置的主机名对应)
GATEWAY=192.168.1.1 (设置本机毗连的网关的IP地点。比方,网关为10.0.0.2)
<3>修正DNS
修正对应网卡的DNS的设置文件
#vi/etc/resolv.conf
nameserver202.101.224.68 (域名办事器)
nameserver202.101.224.69 (域名办事器)
<4>从头启动收集设置
#servicenetworkrestart
或
#/etc/init.d/networkrestart
2.软件源设置
国际速率较快的经常使用更新源以下:
http://mirrors.163.com/centos/163-网易
http://mirrors.ta139.com/centos/中国挪动通讯(山东挪动)
http://centos.ustc.edu.cn/centos/中国迷信手艺年夜学
http://mirror.neu.edu.cn/centos/西南年夜学
编纂yum设置文件:
#vi/etc/yum.repos.d/CentOS-Base.repo
[base]
name=CentOS-$releasever-Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://mirrors.163.com/centos/$releasever/os/$basearch/
http://mirrors.ta139.com/centos/$releasever/os/$basearch/
http://centos.ustc.edu.cn/centos/$releasever/os/$basearch/
http://mirror.neu.edu.cn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#releasedupdates
[updates]
name=CentOS-$releasever-Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
baseurl=http://mirrors.163.com/centos/$releasever/updates/$basearch/
http://mirrors.ta139.com/centos/$releasever/updates/$basearch/
http://centos.ustc.edu.cn/centos/$releasever/updates/$basearch/
http://mirror.neu.edu.cn/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#packagesused/producedinthebuildbutnotreleased
[addons]
name=CentOS-$releasever-Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
baseurl=http://mirrors.163.com/centos/$releasever/addons/$basearch/
http://mirrors.ta139.com/centos/$releasever/addons/$basearch/
http://centos.ustc.edu.cn/centos/$releasever/addons/$basearch/
http://mirror.neu.edu.cn/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additionalpackagesthatmaybeuseful
[extras]
name=CentOS-$releasever-Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
baseurl=http://mirrors.163.com/centos/$releasever/extras/$basearch/
http://mirrors.ta139.com/centos/$releasever/extras/$basearch/
http://centos.ustc.edu.cn/centos/$releasever/extras/$basearch/
http://mirror.neu.edu.cn/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#additionalpackagesthatextendfunctionalityofexistingpackages
[centosplus]
name=CentOS-$releasever-Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
baseurl=http://mirrors.163.com/centos/$releasever/centosplus/$basearch/
http://mirrors.ta139.com/centos/$releasever/centosplus/$basearch/
http://centos.ustc.edu.cn/centos/$releasever/centosplus/$basearch/
http://mirror.neu.edu.cn/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
#contrib-packagesbyCentosUsers
[contrib]
name=CentOS-$releasever-Contrib
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
baseurl=http://mirrors.163.com/centos/$releasever/contrib/$basearch/
http://mirrors.ta139.com/centos/$releasever/contrib/$basearch/
http://centos.ustc.edu.cn/centos/$releasever/contrib/$basearch/
http://mirror.neu.edu.cn/centos/$releasever/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
然后利用以下下令更新到最新体系:
#rpm–import/etc/pki/rpm-gpg-key*
#yumupgrade
3.安装言语包
从安装盘举行安装,找到对应rpm包:
fonts-chinese-3.02-9.6.el5.noarch.rpm
fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
能够经由过程yum举行安装,安装举措为:
#yumgroupinstall<language>-support
在下面的下令中,<language>是以下之一:assamese,bengali,chinese,gujarati,hindi,japanese,kannada,korean,malayalam,marathi,oriya,punjabi,sinhala,tamil,thai,或telegu。
4、解紧缩软件
#yuminstallunrarunzipp7zip-full
5、中文输出法
#yuminstallFcitxSCIMSunpinyin
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们! |
|