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