RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
运行yuminstallphp-y出现无法安装的问题

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

创新互联长期为上1000家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为辛集企业提供专业的成都网站建设、网站建设,辛集网站改版等技术服务。拥有十年丰富建站经验和众多成功案例,为您定制开发。

[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


网页标题:运行yuminstallphp-y出现无法安装的问题
文章出自:http://sczitong.cn/article/gggopc.html