Linux的yum install 不能用并行的方法去运行

本文记录了一次在RHEL6.5环境中尝试并行使用yum install命令导致的问题及系统提示信息。当尝试在同一时间通过多个secureCRT会话并发执行yum install时,会出现锁冲突错误,提示另一个实例正在持有yum锁。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我之前不知道yum install 不能用并行的方法去运行

(此处说的并行是开多个secureCRT同时去运行yum install,也就是说:只能一个yum install一个 yum install的运行),于是就有了下面的报错:

如下的环境是RHEL6.5 X86-64bit

[root@hostb dev]# yum -y groupinstall Desktop
Loaded plugins: product-id, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Existing lock /var/run/yum.pid: another copy is running as pid 9237.
Another app is currently holding the yum lock; waiting for it to exit... --------------->>>>注意此处的提示
  The other application is: yum
    Memory : 148 M RSS (463 MB VSZ)
    Started: Sat Jan  2 12:48:04 2016 - 01:05 ago
    State  : Running, pid: 9237
Another app is currently holding the yum lock; waiting for it to exit...---------------->>>>每2秒重复一次
  The other application is: yum
    Memory : 148 M RSS (463 MB VSZ)
    Started: Sat Jan  2 12:48:04 2016 - 01:07 ago
    State  : Uninterruptible, pid: 9237
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 148 M RSS (463 MB VSZ)
    Started: Sat Jan  2 12:48:04 2016 - 01:09 ago
    State  : Uninterruptible, pid: 9237
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory : 148 M RSS (463 MB VSZ)
    Started: Sat Jan  2 12:48:04 2016 - 01:11 ago
    State  : Uninterruptible, pid: 9237
^C

Exiting on user cancel.
[root@hostb dev]# 


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值