找回密码
 注册
搜索
热搜: 回贴
微赢网络技术论坛 门户 服务器 Linux/BSD 查看内容

Fedora 8中yum设置的点点滴滴

2009-12-20 13:34| 发布者: admin| 查看: 49| 评论: 0|原作者: 江海

首先谈下自己的系统现状:
转投Fedora后觉得 Fedora比Ubuntu好,不想引起争论,只是觉得Fedora走的很超前,很多东西都是Fedora出了后才在ubuntu上找到相似的影子的。但是Fedora的源是他的硬伤,还有就是他的包依赖没有ubuntu做得好。
正文:
推荐安装时选择中文,即使你喜欢用英文界面的操作系统,例如我,因为要是默认用英文安装的话,很多中文字体不会装上,中文输入法也不会装上,后期设
置很麻烦。用中文语言安装后,进如系统,将语言设置成英语即可实现英文操作系统,再在系统中设置下就可以在英文环境下用中文输入法了,设置如下:
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://img135.imageshack.us/img135/116/19571135ks3.png');}" onmousewheel="return imgzoom(this);" alt="" />
现在设置源吧,首先你要google一下livna的源,把 它加进去 。如下:
su
Password:
# rpm -ivh http://rpm.livna.org/livna-release-8.rpm
安装fastestmirror插件。
yum install yum-fastestmirror
好了,该到设置yum了:
gedit /etc/yum/yum-updatesd.conf
其配置如下:
[main]
# how often to check for new updates (in seconds)
run_interval = 604800
#多久检查更新,我设置成了7天
# how often to allow checking on request (in seconds)
updaterefresh = 600
#更新刷新周期,这个是为了避免服务器负担太重,建议保持默认,或者设置大点。
# how to send notifications (valid: dbus, email, syslog)
emit_via = dbus
# should we listen via dbus to give out update information/check for
# new updates
dbus_listener = yes
#以下三项为:是否自动安装更新,是否自动下载更新,是否自动下载依赖,建议全部设置成no,否则系统会在后台自动更新,导致前台的所有安装和更新程序被锁死。
# automatically install updates
do_update = no
# automatically download updates
do_download = no
# automatically download deps of updates
do_download_deps = no
设置fastestmirror
默认的fastestmirror并不是每次都能找到最快的源。
要进行一点算是优化的设置:
gedit /etc/yum/pluginconf.d/fastestmirror.conf
配置如下:
[main]
enabled=1
verbose=0
socket_timeout=1
hostfilepath=/var/cache/yum/timedhosts.txt
maxhostfileage=1
#设置成1,即每一天刷新一次镜像的速度
maxthreads=15
#exclude=.gov, facebook
做了如上设置后也许你还是连不上最快的镜像,这时就要RP和刷新了
yum clean all
这样可以清除镜像的记录,让yum重新刷新
看下system monitor里面的网卡速度,平均100K,比设置前的3~4K快多了
screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://img239.imageshack.us/img239/2637/screenshotsystemmonitorgn2.png');}" onmousewheel="return imgzoom(this);" alt="" />







最新评论

QQ|小黑屋|最新主题|手机版|微赢网络技术论坛 ( 苏ICP备08020429号 )

GMT+8, 2024-9-30 13:32 , Processed in 0.150948 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

返回顶部