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.
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