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

Resolve the prompt "Welcome to nginx on Fedora!" after installing nginx in Centos7 There is no default.conf file in the conf.d directory

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Reference link:

Http://nginx.org/en/linux_packages.html

Summary

The above is the prompt "Welcome to nginx on Fedora!" after installing nginx in Centos7 introduced by the editor. There are no default.conf files in the conf.d directory. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply you in time. Thank you very much for your support to the website!

If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!

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

Servers

Wechat

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

12
Report