|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!搜狐的开源镜像http://mirrors.sohu.com/感到蛮快的不错!!
按以下步骤举行:
1、备份并清空/etc/yum.repos.d/CentOS-Base.repo
echo"">/etc/yum.repos.d/CentOS-Base.repo
大概(假如第一次利用的话)
mv/etc/yum.repos.d/CentOS-Base.repo/etc/yum.repos.d/CentOS-Base.repo.DEFAULT
2、下载CentOS中文更新镜像设置文件,依照必要修正一下,如你的刊行版为4那就把centos5改成centos4便可。然后:
vi/etc/yum.repos.d/CentOS-Base.repo
a
粘贴设置文件的内容
##############################################################################
以下为自己修正并校验的更新:
#CentOS-Base.repo
#
#ThisfileusesanewmirrorlistsystemdevelopedbyLanceDavisforCentOS.
#ThemirrorsystemusestheconnectingIPaddressoftheclientandthe
#updatestatusofeachmirrortopickmirrorsthatareupdatedtoand
#geographicallyclosetotheclient.YoushouldusethisforCentOSupdates
#unlessyouaremanuallypickingothermirrors.
#
#Ifthemirrorlist=doesnotworkforyou,asafallbackyoucantrythe
#remarkedoutbaseurl=lineinstead.
#
#
#CentOS-Base.repo
[base]
name=CentOS-$releasever-Base
baseurl=http://mirrors.sohu.com/centos/5.4/os/$basearch/
http://centos.candishosting.com.cn/5.4/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-5
#releasedupdates
[update]
name=CentOS-$releasever-Updates
baseurl=http://mirrors.sohu.com/centos/5.4/updates/$basearch/
http://centos.candishosting.com.cn/5.4/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-5
#packagesused/producedinthebuildbutnotreleased
[addons]
name=CentOS-$releasever-Addons
baseurl=http://mirrors.sohu.com/centos/5.4/addons/$basearch/
http://centos.candishosting.com.cn/5.4/addons/$basearch/
gpgcheck=1
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-5
#additionalpackagesthatmaybeuseful
[extras]
name=CentOS-$releasever-Extras
baseurl=http://mirrors.sohu.com/centos/5.4/extras/$basearch/
http://centos.candishosting.com.cn/5.4/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-5
#additionalpackagesthatextendfunctionalityofexistingpackages
[centosplus]
name=CentOS-$releasever-Plus
baseurl=http://mirrors.sohu.com/centos/5.4/centosplus/$basearch/
http://centos.candishosting.com.cn/5.4/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-5
#contrib-packagesbyCentosUsers
[contrib]
name=CentOS-$releasever-Contrib
baseurl=http://mirrors.sohu.com/centos/5.4/contrib/$basearch/
http://centos.candishosting.com.cn/5.4/contrib/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.sohu.com/centos/RPM-GPG-KEY-CentOS-5
##############################################################################
软件堆栈:
vi/etc/yum.repos.d/dag.repo
[dag]
name=DagRPMRepositoryforRedHatEnterpriseLinux
baseurl=http://mirrors.ircam.fr/pub/dag/redhat/el$releasever/en/$basearch/dag
http://rh-mirror.linux.iastate.edu/pub/dag/redhat/el$releasever/en/$basearch/dag
http://wftp.tu-chemnitz.de/pub/linux/dag/redhat/el$releasever/en/$basearch/dag
http://archive.cs.uu.nl/mirror/dag.wieers/redhat/el$releasever/en/$basearch/dag
http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
http://mirror.cpsc.ucalgary.ca/mirror/dag/redhat/el$releasever/en/$basearch/dag
http://rpmfind.net/linux/dag/redhat/el$releasever/en/$basearch/dag
http://ftp.riken.jp/Linux/dag/redhat/el$releasever/en/$basearch/dag
http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
enabled=1
gpgcheck=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
********************************************************************
挂载/etc/fstab文件中/dev/hda1/mnt/win_cvfatcodepage=936,iocharset=cp93600
封闭、启动基础办事
实行ntsysv指令,只留下以下办事:
acpid
anacron
cpuspeed
crond
network
sshd
syslog
yum-updatesd
runlevel先容:
more/etc/inittab
ll/etc/rc.d/
more/etc/rc.d/rc.local
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们! |
|