yum

PYTHON升级导致yum命令无法使用的解决方案

CentOS 5.4系统默认Python版本是2.4.3
需要升级到Python 2.5.4,由于yum包管理是用python写的,仅仅单独升级python会导致yum无法使用.
出现这种情况的主要原因在于新安装的Python没有YUM服务所依赖的Packages.
 
[root@TC-Boss ~]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
   No module named yum
Please install a package which provides this module, or

Fedora 8下用Yum安装Apache+PHP+MySQL环境

fedora8 用yum来管理安装Apache+PHP+Mysql的基本安装。


1. 安装Apahce, PHP, Mysql, 以及php连接mysql库组件。

yum -y install httpd php mysql mysql-server php-mysql


2. 配置开机启动服务

 /sbin/chkconfig httpd on             [设置apache服务器httpd服务开机启动]
 /sbin/chkconfig --add mysqld         [在服务清单中添加mysql服务]
 /sbin/chkconfig mysqld on             [设置mysql服务开机启动]

centos的搜狐源更新

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

同步内容