Home  >  Q&A  >  body text

centos7 - Why does centos 7 display Welcome to nginx on Fedora! after installing nginx?

centos7 system installation nginx

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

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

Install like this. After installation, it is nginx 1.6.2

The default page is displayed after installation

Welcome to nginx on Fedora!

Rather than the default page that has no style. There is no problem with this, the main thing is

/etc/nginx/conf.d/

There is no default.conf file in this directory. Why is this?

This problem did not occur during the original installation.

过去多啦不再A梦过去多啦不再A梦2686 days ago1391

reply all(3)I'll reply

  • 为情所困

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

    It turns out there is a source of epel.repo
    Haha

    reply
    0
  • 迷茫

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

    Well, I guess you have Alibaba Cloud installed it for you. You can compile it from source or modify the yum repo

    reply
    0
  • 迷茫

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

    When you have the epel source and use yum install nginx to install it, it will display Welcome to nginx on Fedora!, because the epel source is maintained by Fedora

    reply
    0
  • Cancelreply