1、报错示例
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 34 M RSS (362 MB VSZ)
Started: Sun Dec 23 03:56:09 2018 - 504 day(s) 6:57:32 ago
State : Traced/Stopped, pid: 27590
2、使用ps命令查看yum进程
[root@VM_0_17_centos rabbitmq]# ps aux|grep yum
root 27590 0.1 3.4 370756 35304 pts/0 T 2018 0:00 /usr/bin/python /usr/bin/yum list
root 27627 0.0 2.4 357600 24592 pts/0 T 2018 0:00 /usr/bin/python /usr/bin/yum list
3、使用kill命令杀死进程
[root@VM_0_17_centos rabbitmq]# kill -9 27590
[root@VM_0_17_centos rabbitmq]# kill -9 27627
4、再次查验yum进程已经不存在
[root@VM_0_17_centos rabbitmq]# ps aux|grep yum