zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    穷举 迭代 while
    for 循环
    switch case
    if else 语句
    数据类型
    语句的输入、输出
    控件——DataGridview
    mysql-bin.000001文件的来源及处理方法
    /var/log目录下的20个Linux日志文件功能详解
    CountDownLatch
  • 原文地址:https://www.cnblogs.com/mensiler/p/9883319.html
Copyright © 2011-2022 走看看