在Centos 7(64位)上使用epel repo无法安装nginx

我刚刚构build了一个64位的Centos服务器,我正在尝试安装NGINX。 使用epel 7(testing版)回购时,在尝试安装时出现以下错误:

Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.as29550.net * epel: mirror.vorboss.net * extras: centos.hyve.com * updates: centos.mirroring.pulsant.co.uk Resolving Dependencies --> Running transaction check ---> Package nginx.x86_64 0:1.0.15-5.el6 will be installed --> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: nginx-1.0.15-5.el6.x86_64 --> Processing Dependency: libpcre.so.0()(64bit) for package: nginx-1.0.15-5.el6.x86_64 --> Finished Dependency Resolution Error: Package: nginx-1.0.15-5.el6.x86_64 (epel) Requires: libpcre.so.0()(64bit) Error: Package: nginx-1.0.15-5.el6.x86_64 (epel) Requires: perl(:MODULE_COMPAT_5.10.1) You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest 

有没有人成功通过yum安装NGINX?

我会build议添加nginx回购

 sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 

这应该可以解决你的问题。

干杯。

这似乎不正确,因为RHEL7 x86_64的EPEL存储库中的nginx版本是1.6.1 。

尝试yum clean all; yum update yum clean all; yum update并重复安装过程。 如果仍然失败,请尝试指定不同的镜像(与您使用的镜像不同步)。

您没有安装EPEL 7存储库。 这是EPEL 6存储库。 删除它,然后再试一次。

更好的做法是,从他们自己的仓库安装nginx,以确保您能够及时了解关键的和不太关键的上游修复程序。