centos7 - Why does centos 7 display Welcome to nginx on Fedora! after installing nginx?
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 17:24:23
0
3
1427

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梦

reply all(3)
为情所困

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

迷茫

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

迷茫

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!