Centos7安装nginx后提示“Welcome to nginx on Fedora!”怎么解决
时间:2023-05-21 04:38
问题描述 在腾讯云centos7上安装nginx 打开默认网页显示 welcome to nginx on fedora! 且 目录下无default.conf文件 原因 腾讯云的epel源是默认下载就是fedora的 解决方法 •准备工作 •创建nginx.repo文件 并添加以下内容 •安装nginx 以上就是Centos7安装nginx后提示“Welcome to nginx on Fedora!”怎么解决的详细内容,更多请关注Gxl网其它相关文章!sudo yum install nginx
/etc/nginx/conf.d
sudo yum install yum-utils
sudo vim /etc/yum.repos.d/nginx.repo
[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
sudo yum install nginx