首页 > Web开发 > 详细

运行yum install php -y 出现无法安装的问题

时间:2014-12-08 15:51:58      阅读:230      评论:0      收藏:0      [点我收藏+]

问题:运行yun install php -y 出现Existing lock /var/run/yum.pid: another copy is running as pid 12092.问题。

[root@xiao ~]# yum install php -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 12092.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  14 M RSS ( 31 MB VSZ)
    Started: Mon Nov 24 02:55:21 2014 - 00:23 ago
    State  : Sleeping, pid: 12092

原因:安装的时候yum有一个自动更新的服务(/etc/init.d/yum-updatesd)在运行,激活了yum进程。

方法:停止进程,关闭服务

停止进程:[root@xiao ~]#rm -f /var/run/yum.pid

关闭服务:[root@xiao ~]#/etc/init.d/yum-updatesd stop

本文出自 “天下大道行天下” 博客,请务必保留此出处http://enochline.blog.51cto.com/9390497/1587486

运行yum install php -y 出现无法安装的问题

原文:http://enochline.blog.51cto.com/9390497/1587486

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!