全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2847|回复: 12

[疑问] 这个是嘛意思 .那个哥们给说说怎么办?

[复制链接]
发表于 2011-10-18 09:00:38 | 显示全部楼层 |阅读模式
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
发表于 2011-10-18 09:01:38 | 显示全部楼层
yum被锁住了吧

另外有yum在运行?
发表于 2011-10-18 09:04:02 | 显示全部楼层
意思不说是一个进程id为1550的占用了copy。看看pid为1550的是啥么进程。关了或者重启一下该进程呗。
 楼主| 发表于 2011-10-18 09:04:49 | 显示全部楼层
噢 .谢谢各位 .
 楼主| 发表于 2011-10-18 21:59:48 | 显示全部楼层
运行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
发表于 2011-10-18 22:12:49 | 显示全部楼层
/etc/init.d/yum-updatesd stop
发表于 2011-10-20 08:42:09 | 显示全部楼层
原帖由 tobeychan 于 2011-10-18 22:12 发表
/etc/init.d/yum-updatesd stop


我收藏下这个命令
发表于 2011-10-20 08:42:09 | 显示全部楼层
原帖由 tobeychan 于 2011-10-18 22:12 发表
/etc/init.d/yum-updatesd stop


我收藏下这个命令
发表于 2011-10-20 08:50:03 | 显示全部楼层
技术贴留名。
发表于 2011-10-20 09:15:41 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-5 11:12 , Processed in 0.079169 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表