CentOS

yum 自动镜像

#yum -y install yum-fastestmirror 等待安装完成即可!

以后就yum自动检测记录镜像的速度了

哈哈。。 很多时候我排第二个的镜像是最快的,到下载文件的时候ctrl+c取消一次,就用第二个了,快!全速,呵呵

配置文件:(一般不用动) /etc/yum/pluginconf.d/fastestmirror.conf 你的yum镜像的速度测试记录文件: /var/cache/yum/timedhosts.txt

国内镜像

http://centos.ustc.edu.cn/

cd /etc/yum.repos.d
mv CentOS-Base.repo  CentOS-Base.repo.save
wget http://centos.ustc.edu.cn/CentOS-Base.repo.5
mv CentOS-Base.repo.5 CentOS-Base.repo
yum install -y ntp vim-enhanced gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel kernel

yum php最新版

默认yum只更新到5.1,以下方法设置后能升级到5.2.6

rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
vim /etc/yum.repos.d/utterramblings.repo

Now in the window paste this:

[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Now push Ctrl+C, write :w and push enter to save the file, write :quit and enter to exit vim.

You can update using “yum update”

yum list php

已经测试成功,见: http://hi.baidu.com/ksw520/blog/item/2341b2ec7704892062d09fda.html

http://centos.ustc.edu.cn/centos/5.3/os/i386/RPM-GPG-KEY-CentOS-5

centos 服务

chkconfig

参考网站

linux/centos.txt · 最后更改: 2010/02/12 06:51 由 kenvin
到顶部
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0 红麦软件 红麦软件