• CentOS7.2安装nginx失败


    错误提示:

    Loaded plugins: fastestmirror

    Loading mirror speeds from cached hostfile

     * base: mirrors.aliyun.com

     * epel: mirrors.tuna.tsinghua.edu.cn

     * extras: mirrors.aliyun.com

     * remi-php56: mirrors.tuna.tsinghua.edu.cn

     * remi-safe: mirrors.tuna.tsinghua.edu.cn

     * updates: mirrors.aliyun.com

    Resolving Dependencies

    --> Running transaction check

    ---> Package nginx.x86_64 0:1.10.3-1.el6.ngx will be installed

    --> Processing Dependency: libpcre.so.0()(64bit) for package: nginx-1.10.3-1.el6.ngx.x86_64

    --> Finished Dependency Resolution

    Error: Package: nginx-1.10.3-1.el6.ngx.x86_64 (nginx)

               Requires: libpcre.so.0()(64bit)

     You could try using --skip-broken to work around the problem

     You could try running: rpm -Va --nofiles --nodigest

    解决办法:(6改为7)

     vi /etc/yum.repos.d/nginx.repo

    # nginx.repo

    [nginx]

    name=nginx repo

    baseurl=http://nginx.org/packages/centos/7/$basearch/

    gpgcheck=0

    enabled=1

    重新yum -y install nginx安装

    来自https://cloud.tencent.com/info/385a599c5a6f34b82d541f9f7b2d9aae.html

  • 相关阅读:
    centos6.8防火墙模块未加载
    CentOS6.8下安装Redis
    CentOS6.8下安装mysql
    git使用手册
    oracle锁表与解表
    原生js(二)
    原生js(一)
    学习计划调整
    jQuery Sizzle选择器(三)
    jQuery Sizzle选择器(二)
  • 原文地址:https://www.cnblogs.com/mensiler/p/9883319.html
Copyright © 2020-2023  润新知