# wxhh_client **Repository Path**: gitironman/wxhh_client ## Basic Information - **Project Name**: wxhh_client - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-07-07 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 06.12 服务搭建 1. 游戏客户端搭建(egret)(客户端server和python服务端在一台机器上) 代码目录: /data/source/wxhh_client 2. 客户端请求流程: 浏览器发送连接请求<--> client server返回游戏资源 <-> Proxy请求游戏数据 3. 配置nginx 配置文件位于/etc/nginx/conf.d/wxhh_client.conf server { listen 8080 default_server; # 端口配置 listen [::]:8080 default_server; # 端口配置 server_name _; root /usr/share/nginx/html; # Load configuration files for the default server block. #include /etc/nginx/default.d/*.conf; location / { root /data/source/wxhh_client; #定义服务器的默认网站根目录位置 index index.php index.html index.htm; #定义首页索引文件的名称 } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } } 4. nginx启动 sudo nginx -t # 测试nginx配置是否正确 sudo nginx -s reload 5. mysql表操作 create database ob_game; 注释game/__init__.py内代码 python test_db.py 取消注释game/__init__.py内代码