問題描述
在騰訊雲centos7上安裝nginx<br>
sudo yum install nginx
#打開預設網頁顯示
welcome to nginx on fedora!
且<br>
##/etc/nginx/conf.d
原因
騰訊雲的epel來源是預設下載就是fedora的解決方法<br>
•準備工作<br>
sudo yum install yum-utils<br>
<br>
sudo vim /etc/yum.repos.d/nginx.repo
<br>
[nginx-stable] name=nginx stable repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=1 enabled=1 gpgkey=https://nginx.org/keys/nginx_signing.key [nginx-mainline] name=nginx mainline repo baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/ gpgcheck=1 enabled=0 gpgkey=https://nginx.org/keys/nginx_signing.key•安裝nginx
<br>
sudo yum install nginx#
以上是Centos7安裝nginx後提示「Welcome to nginx on Fedora!」怎麼解決的詳細內容。更多資訊請關注PHP中文網其他相關文章!