1.首先创建对应网站的站点目录,存放对应的代码。

mkdir /code
  cd /code
  rz 上传源码
  unzip html5.zip

2.配置nginx 服务

[root@wed01 /etc/nginx/conf.d]#vim html.org.conf
server{
  listen 80;
  server_name jia.org;
  location / {
    root /code;
    index index.html;
  }
}

  

3.检查语法,

[root@wed01 /etc/nginx/conf.d]# nginx -t
  nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
  nginx: configuration file /etc/nginx/nginx.conf test is successful

4.重载nginx 服务

[root@wed01 /etc/nginx/conf.d]# systemctl reload nginx

  

5.域名访问:

 

h5游戏服务端架构 h5游戏部署_html