Centos7 prompts "Welcome to nginx on Fedora!" after installing nginx How to solve the problem?
Today, the editor will share with you the prompt "Welcome to nginx on Fedora!" after installing nginx in Centos7. How to solve the relevant knowledge points, detailed content, clear logic, I believe that most people still know too much about this knowledge, so share this article for your reference, I hope you can get something after reading this article. Let's take a look at it.
Problem description
Install nginx on Tencent Cloud centos7
Sudo yum install nginx
Open the default web page display
Welcome to nginx on fedora!
And
/ etc/nginx/conf.d
No default.conf file in the directory
Reason
The default download of Tencent Cloud's epel source is fedora.
Solution method
Preparatory work
Sudo yum install yum-utils
Create a nginx.repo file
Sudo vim / etc/yum.repos.d/nginx.repo
And add the following
[nginx-stable] name=nginx stable repobaseurl= http://nginx.org/packages/centos/$releasever/$basearch/gpgcheck=1enabled=1gpgkey=https://nginx.org/keys/nginx_signing.key[nginx-mainline]name=nginx mainline repobaseurl= http://nginx.org/packages/mainline/centos/$releasever/$basearch/gpgcheck=1enabled=0gpgkey=https://nginx.org/keys/nginx_signing.key
Install nginx
Sudo yum install nginx
These are all the contents of this article "Centos7 prompts" Welcome to nginx on Fedora! "how to solve" after installing nginx. Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.