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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM