您当前的位置: 首页 >  nginx

小志的博客

暂无认证

  • 2浏览

    0关注

    1217博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Nginx——yum安装nginx提示 The other application is: PackageKit

小志的博客 发布时间:2021-06-27 20:56:59 ,浏览量:2

一、报错如下:
[root@localhost /]# yum list|grep nginx
/var/run/yum.pid 已被锁定,PID 为 10120 的另一个程序正在运行。
Another app is currently holding the yum lock; waiting for it to exit...
  另一个应用程序是:PackageKit
    内存: 28 M RSS (444 MB VSZ)
    已启动: Sun Jun 27 20:52:26 2021 - 00:02之前
    状态  :睡眠中,进程ID:10120

在这里插入图片描述

二、解决方式
  • 执行rm -f /var/run/yum.pid 命令

    [root@localhost /]# rm -f /var/run/yum.pid
    
  • 在使用yum list|grep nginx命令查看Nginx报错消失。

    [root@localhost ~]# yum list |grep nginx
    nginx.x86_64                1:1.12.2-1.el7_4.ngx    nginx
    nginx-debug.x86_64             1:1.8.0-1.el7.ngx      nginx
    nginx-debuginfo.x86_64           1:1.12.2-1.el7_4.ngx    nginx
    nginx-module-geoip.x86_64         1:1.12.2-1.el7_4.ngx    nginx
    nginx-module-geoip-debuginfo.x86_64    1:1.12.2-1.el7_4.ngx    nginx
    nginx-module-image-filter.x86_64      1:1.12.2-1.el7_4.ngx    nginx
    nginx-module-image-filter-debuginfo.x86_64 1:1.12.2-1.el7_4.ngx    nginx
    nginx-module-njs.x86_64          1:1.12.2.0.1.14-1.el7_4.ngx nginx
    nginx-module-njs-debuginfo.x86_64     1:1.12.2.0.1.14-1.el7_4.ngx nginx
    nginx-module-perl.x86_64          1:1.12.2-1.el7_4.ngx    nginx
    nginx-module-perl-debuginfo.x86_64     1:1.12.2-1.el7_4.ngx    nginx
    nginx-module-xslt.x86_64          1:1.12.2-1.el7_4.ngx    nginx
    nginx-module-xslt-debuginfo.x86_64     1:1.12.2-1.el7_4.ngx    nginx
    nginx-nr-agent.noarch           2.0.0-12.el7.ngx      nginx
    pcp-pmda-nginx.x86_64           3.11.8-7.el7        base
    
关注
打赏
1661269038
查看更多评论
立即登录/注册

微信扫码登录

0.0414s