Heim  >  Fragen und Antworten  >  Hauptteil

centos7 - Warum wird Centos 7 nach der Installation von Nginx auf Fedora angezeigt?

Installieren Sie Nginx auf dem Centos7-System

vi /etc/yum.repos.d/nginx.repo

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1

So installieren. Nach der Installation ist es Nginx 1.6.2

Die Standardseite wird nach der Installation angezeigt

Willkommen bei Nginx auf Fedora!

Anstelle der Standardseite ohne Stil. Daran ist nichts auszusetzen, Hauptsache

/etc/nginx/conf.d/

In diesem Verzeichnis gibt es keine Datei default.conf. Warum ist das so?

Dieses Problem trat bei der ursprünglichen Installation nicht auf.

过去多啦不再A梦过去多啦不再A梦2686 Tage vor1388

Antworte allen(3)Ich werde antworten

  • 为情所困

    为情所困2017-05-16 17:26:23

    原来有个epel.repo的源
    哈哈

    Antwort
    0
  • 迷茫

    迷茫2017-05-16 17:26:23

    恩 估计你是阿里云 .. 它帮你装了的 . 你可以源码编译 或者修改 yum repo

    Antwort
    0
  • 迷茫

    迷茫2017-05-16 17:26:23

    有epel源的时候并且用yum install nginx 安装就会显示Welcome to nginx on Fedora!,因为epel源就是Fedora维护的

    Antwort
    0
  • StornierenAntwort