查看apache IP访问量
2010-12-03 13:14
295 查看
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
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.5.4 (r254:67916, Feb 24 2010, 10:03:49)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
解决方法:
查找yum文件,并编辑此py文件
[root@TC-Boss ~]# which yum
/usr/bin/yum
[root@TC-Boss ~]# vi /usr/bin/yum
将
#!/usr/bin/python
改为:
#!/usr/bin/python2.4
然后保存OK.
还有一种可能也同样会导致无法使用yum,就是/usr/bin下的python、python2、python2.4三个文件一定不能改变。理论上说 yum只是基于python语言,跟版本并没有关系,但是升级过程中确实会出现问题,具体的机制我也不是很清楚。本文出自 “让爱走吧~!” 博客,请务必保留此出处http://ylj798.blog.51cto.com/110701/1061934
需要升级到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
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.5.4 (r254:67916, Feb 24 2010, 10:03:49)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
解决方法:
查找yum文件,并编辑此py文件
[root@TC-Boss ~]# which yum
/usr/bin/yum
[root@TC-Boss ~]# vi /usr/bin/yum
将
#!/usr/bin/python
改为:
#!/usr/bin/python2.4
然后保存OK.
还有一种可能也同样会导致无法使用yum,就是/usr/bin下的python、python2、python2.4三个文件一定不能改变。理论上说 yum只是基于python语言,跟版本并没有关系,但是升级过程中确实会出现问题,具体的机制我也不是很清楚。本文出自 “让爱走吧~!” 博客,请务必保留此出处http://ylj798.blog.51cto.com/110701/1061934
相关文章推荐
- linux下使用shell查看apache IP访问量
- 查看Apache并发请求数及其TCP连接状态及用tcpdump来收集ip的访问量
- 查看apache IP访问量
- linux下使用shell查看apache IP访问量
- (转)shell查看apache IP访问量
- linux下使用shell查看apache IP访问量
- 查看apache IP访问量
- Apache编译和rpm安装,统计appche站点IP访问量脚本
- linux apache 查看IP连接数
- 3招轻松查看别人网站的ip访问量-如何查看网站访问量教程(转)
- 查看access.log的独立ip访问量
- 查看局域网其它计算机IP地地址方法
- scala 编写 ip count 对apache 日志 IP 简单统计
- 查看Web服务器(NginxApache)的并发请求数及其TCP连接状态
- Shell 命令行统计 apache 网站日志访问IP以及IP归属地
- 华为手机怎么查看ip 网关
- Linux 下查看局域网内所有主机IP和MAC
- linux shell命令查看接口索引--ip link show
- 查看IP地址
- apache 日志中记录代理IP以及真实客户端IP