Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos7 prompts "Welcome to nginx on Fedora!" after installing nginx How to solve the problem?

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report