Centos6.5 yum 被锁,被占用 如何强制退出或者杀死yum进程。  看报错信息理解和windows下面文件被占用一样的道理。

报错信息如下:
 
[root@890592f45b6f yum.repos.d]# yum clean all
Existing lock /var/run/yum.pid: another copy is running as pid 91.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  35 M RSS (223 MB VSZ)
    Started: Sat Jan 21 02:44:39 2017 - 02:23 ago
    State  : Traced/Stopped, pid: 91
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  35 M RSS (223 MB VSZ)
    Started: Sat Jan 21 02:44:39 2017 - 02:25 ago
    State  : Traced/Stopped, pid: 91

可以看出The other application is: yum,有另一个yum已经在执行了,这个可能是
前一个yum命令没执行完被Ctrl+Z 或+C强制退出了。

从报错信息可以看到 lock的位置在/var/run/yum.pid,看到多数的解决办法都是
直接删除该文件:

命令如下:
rm -rf /var/run/yum.pid



本文链接二维码可以保存在本地:保存

| 浏览 (4617) | (0) | (0) | | 2017-01-21 11:33:06 |


相关文章

  1. Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
  2. php rename Operation not permitted centos
  3. 777,644,755等用户权限说明
  4. E45 readonly option is set (add!to override)