php基础运行环境问题报错,请老师协助

来源:11-1 PHP基础运行环境搭建

Z3273106

2018-02-24

当我运行完这两条数据后,

[imooc@www ~]$ sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm

[imooc@www ~]$ sudo rpm -Uvh http://mirror.webtatic.com/yum/el7/webtatic-release.rpm

显示如下代码:

[imooc@www ~]$ yum search php

Loaded plugins: fastestmirror

base                                                                                                                                                                    | 3.6 kB  00:00:00     

epel/x86_64/metalink                                                                                                                                                    | 7.5 kB  00:00:00     

epel                                                                                                                                                                    | 4.7 kB  00:00:00     

extras                                                                                                                                                                  | 3.4 kB  00:00:00     

mysql-connectors-community                                                                                                                                              | 2.5 kB  00:00:00     

mysql-tools-community                                                                                                                                                   | 2.5 kB  00:00:00     

mysql57-community                                                                                                                                                       | 2.5 kB  00:00:00     

nginx                                                                                                                                                                   | 2.9 kB  00:00:00     

updates                                                                                                                                                                 | 3.4 kB  00:00:00     

Could not retrieve mirrorlist https://mirror.webtatic.com/yum/el7/x86_64/mirrorlist error was

12: Timeout on https://mirror.webtatic.com/yum/el7/x86_64/mirrorlist: (28, 'Operation timed out after 30000 milliseconds with 0 out of 0 bytes received')

One of the configured repositories failed (Unknown),

 and yum doesn't have enough cached data to continue. At this point the only

 safe thing yum can do is fail. There are a few ways to work "fix" this:


     1. Contact the upstream for the repository and get them to fix the problem.


     2. Reconfigure the baseurl/etc. for the repository, to point to a working

        upstream. This is most often useful if you are using a newer

        distribution release than is supported by the repository (and the

        packages for the previous distribution release still work).


     3. Run the command with the repository temporarily disabled

            yum --disablerepo=<repoid> ...


     4. Disable the repository permanently, so yum won't use it by default. Yum

        will then just ignore the repository until you permanently enable it

        again or use --enablerepo for temporary usage:


            yum-config-manager --disable <repoid>

        or

            subscription-manager repos --disable=<repoid>


     5. Configure the failing repository to be skipped, if it is unavailable.

        Note that yum will try to contact the repo. when it runs most commands,

        so will have to try and fail each time (and thus. yum will be be much

        slower). If it is a very temporary problem though, this is often a nice

        compromise:


            yum-config-manager --save --setopt=<repoid>.skip_if_unavailable=true


Cannot find a valid baseurl for repo: webtatic/x86_64

请老师您看看,谢谢。

写回答

1回答

编程浪子

2018-02-27

加入qq群了?直接在群里问。这个有点变态

0
1
Z3273106
非常感谢!
2018-02-27
共1条回复

快速上手Linux 玩转典型应用

以主流CentOS 7 操作系统为例,系统讲解Linux,真实线上环境助你快速上手,独立配置运维服务器

1663 学习 · 572 问题

查看课程