[root@lb02 scripts]# yum install pcre-devel openssl-devel -y
Loaded plugins: fastestmirror, security
Existing lock /var/run/yum.pid: another copy is running as pid 5243.
Another app is currently holding the yum lock; waiting for it to exit...
解决办法是:
方法一:rm -f /var/run/yum.pid
方法二:查看yum进程 ps -ef|grep yum
kill 进程号
方法三:查看yum进程 ps -ef|grep yum
killall 进程名