标签:pos inf html info name gpg wal col system
1、关闭防火墙
[root@izbp176gmws1f6cpbllwouz ~]# systemctl stop firewalld [root@izbp176gmws1f6cpbllwouz ~]# setenforce 0
2、配置nginx的yum源
[root@izbp176gmws1f6cpbllwouz ~]# cd /etc/yum.repos.d/ [root@izbp176gmws1f6cpbllwouz yum.repos.d]# ls CentOS-Base.repo epel.repo nginx.repo [root@izbp176gmws1f6cpbllwouz yum.repos.d]# vim nginx.repo [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1
3、yum安装nginx
[root@izbp176gmws1f6cpbllwouz ~]# yum -y install nginx
4、进入nginx的html页面
[root@izbp176gmws1f6cpbllwouz ~]# cd /usr/share/nginx/html/
5、上传已经打包好的小游戏包并解压
[root@izbp176gmws1f6cpbllwouz html]# ls
50x.html css img index.html index.html1
[root@izbp176gmws1f6cpbllwouz html]#
6、这个时候就可以重启nginx服务了,然后访问nginx页面,就可以看到效果了
这里展示一下效果
标签:pos inf html info name gpg wal col system
原文地址:https://www.cnblogs.com/Zrecret/p/12146660.html