标签:yum pid existing lock
问题:运行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 出现无法安装的问题
标签:yum pid existing lock
原文地址:http://enochline.blog.51cto.com/9390497/1587486