[root@master-hadoop hadoop]# yum install gcc*
发生异常:
it to exit...
The other application is: yum
Memory : 63 M RSS (358 MB VSZ)
Started: Sat Feb 18 11:56:42 2017 - 44:10 ago
State : Sleeping, pid: 3038
Another app is currently holding the yum lock; waiting for
查看 /var/run/yum.pid,只是一个数,其他的 可能是系统自动升级正在运行,所以yum被锁定了。
[root@master-hadoop hadoop]# rm -rf /var/run/yum.pid 来强行解除锁定,然后你的yum就可以运行了。