全球主机交流论坛

标题: 这个是嘛意思 .那个哥们给说说怎么办? [打印本页]

作者: alexa8    时间: 2011-10-18 09:00
标题: 这个是嘛意思 .那个哥们给说说怎么办?
Existing lock /var/run/yum.pid: another copy is running as pid 1550.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  39 M RSS (201 MB VSZ)
    Started: Mon Oct 17 20:54:09 2011 - 05:49 ago
    State  : Sleeping, pid: 1550
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  39 M RSS (201 MB VSZ)
    Started: Mon Oct 17 20:54:09 2011 - 05:51 ago
    State  : Sleeping, pid: 1550
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  39 M RSS (201 MB VSZ)
    Started: Mon Oct 17 20:54:09 2011 - 05:53 ago
    State  : Sleeping, pid: 1550
作者: Kvm    时间: 2011-10-18 09:01
yum被锁住了吧

另外有yum在运行?
作者: mapleaf    时间: 2011-10-18 09:04
意思不说是一个进程id为1550的占用了copy。看看pid为1550的是啥么进程。关了或者重启一下该进程呗。
作者: alexa8    时间: 2011-10-18 09:04
噢 .谢谢各位 .
作者: alexa8    时间: 2011-10-18 21:59
运行yum,系统提示Existing lock /var/run/yum.pid: another copy is running as pid 3046

问题描述:登录系统后,执行yum install vsftpd,提示Existing lock /var/run/yum.pid: another copy is running as pid 5048.有时等5~10分钟yum可以正常使用。

问题分析:主要原因就是yum在自动更新,所以再运行yum就会报这个错。

问题解决:只要关掉正在执行的yum更新就可以了就可以了,停止正在运行的yum进程,或者禁用开机自动启动yum进程。

操作步骤:

停止yum进程

[root@localhost ~]# rm -f /var/run/yum.pid

为什么会有一个yum进程在执行呢?

原来是yum自动更新机制自动激活了yum进程,用下面的命令停止自动更新:

[root@localhost ~]# /etc/init.d/yum-updatesd stop

停止 yum-updatesd: [确定]

如果我们不需要自动更新服务,可以直接删除它。
#yum remove yum-updatesd
不过删除该服务之后,以后的更新要用下面的命令手工来完成了。

#yum update

原文:http://www.lutuzhi.com/howto/112.html
作者: tobeychan    时间: 2011-10-18 22:12
/etc/init.d/yum-updatesd stop
作者: aigo    时间: 2011-10-20 08:42
原帖由 tobeychan 于 2011-10-18 22:12 发表
/etc/init.d/yum-updatesd stop


我收藏下这个命令
作者: aigo    时间: 2011-10-20 08:42
原帖由 tobeychan 于 2011-10-18 22:12 发表
/etc/init.d/yum-updatesd stop


我收藏下这个命令
作者: Serveragents    时间: 2011-10-20 08:50
技术贴留名。
作者: geyunbing    时间: 2011-10-20 09:15
提示: 作者被禁止或删除 内容自动屏蔽
作者: yu.gs尊    时间: 2011-10-20 09:17
这就是技术贴啦
作者: 誓誓    时间: 2011-10-20 09:17
标题: 标题
收藏先
作者: zyzit    时间: 2011-10-20 09:25
看不懂,




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4