0

我正在尝试在 Linux Centos 6.7 中安装 Nginx

我以root身份登录并运行

yum update

yum install nginx -y

我不断得到

nginx-1.0.15-12.el6.x86_64:失败:来自 epel 的 nginx-1.0.15-12.el6.x86_64.rpm:[Errno 256] 没有更多镜像可以尝试。

对此的任何提示/建议将不胜感激


尝试#2

yum clean metadata那试试yum install nginx -y,我有

[root@CentOS6 ~]# yum install nginx -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                                                                 |  12 kB     00:00     
 * base: mirror.solarvps.com
 * epel: ftp.cse.buffalo.edu
 * extras: mirror.atlanticmetro.net
 * remi-php56: mirrors.mediatemple.net
 * remi-safe: mirrors.mediatemple.net
 * updates: mirror.net.cen.ct.gov
base                                                                                                                                                          | 3.7 kB     00:00     
base/primary_db                                                                                                                                               | 4.6 MB     00:00     
epel                                                                                                                                                          | 4.3 kB     00:00     
epel/primary_db                                                                                                                                               | 3.6 MB     00:00     
Error: xz compression not available

尝试#3

yum install pyliblzma或者yum install python-backports-lzma

Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.solarvps.com
 * epel: ftp.cse.buffalo.edu
 * extras: mirror.atlanticmetro.net
 * remi-php56: mirrors.mediatemple.net
 * remi-safe: mirrors.mediatemple.net
 * updates: mirror.trouble-free.net
Error: xz compression not available
4

1 回答 1

0

尝试#4正在工作

我通过执行以下操作安装了Nginx

  • yum clean all
  • yum remove epel-release
  • yum update
  • yum install epel-release
  • yum install nginx -y
于 2015-11-05T18:09:14.277 回答