Existing lock /var/run/yum.pid - 解决办法

执行yum安装时出现Existing lock /var/run/yum.pid: another copy is running as pid。

# sudo yum install nginx
Loaded plugins: fastestmirror
Existing lock /var/run/yum.pid: another copy is running as pid 1712.
Another app is currently holding the yum lock; waiting for it to exit...
 The other application is: yum
  Memory : 84 M RSS (483 MB VSZ)
  Started: Fri Feb 14 14:28:16 2020 - 17:18 ago
  State : Sleeping, pid: 1712

解决方法:

rm /var/run/yum.pid