======服务器部署====== =====0服务器更新备忘===== ====客户端版本==== ''ProtocolManager'' 地址 ''GameManager _client_version'' Unity ''PlayerSetting ProductName / 版本号'' Unity ''RELEASE''宏 Unity ''bundle id'' ====服务器版本==== [[generated:server_config]] [[generated:server_setting]] - recommended_version=7000; 推荐用户版本号 \\ - limit_version=6000; 最低可以登录的版本号 \\ - download_url=https://www.taptap.com/app/47343; 下载游戏地址 \\ 聊天 [[generated:chat_room_config]] gateway address 商城配置 [[generated:shop_setting]] without_iap 是否关闭内购 [[generated:shop_setting]] approve_version 账号密码登录 一定要0 公告/邮件/活动 准备配套的prototype [[generated:notice_config]] 公告,注意去掉测试部分 [[generated:activity_config]] 注意,去掉测试部分 [[generated:mail_config]] 邮件文本,一般不用改 特定的迷宫对手id [[generated:maze_setting]] room_rob_target_firsttime 竞技场特殊对手id [[generated:battle_setting]] arena_player_for_guide 渠道配置信息 [[generated:sdk_setting]] channel_type 设置为3 =====1分支版本管理===== ====1/数据库备份==== ''trunk\SQL\backup\dump_sql.bat'' **注意:sql 文件中删除use 'xxxxxx' 和 create database xxxx ** 备份路径 ''\trunk\SQL\backup'' 备份摘要 -清理旧数据 存储过程: ''clear_redundancy_data'' ====2/创建分支==== {{:pasted:20170412-141657.png}} 注意使用buildmachine账号 =====2部署服务器===== 服务器主要包含 - httpd Apache - MySQL 数据库 - PHP - Redis - SVN代码 ====2.1数据库部署==== ===2.1.1 MYSQL安装=== 略 ===2.1.2 数据库创建=== 创建数据库 从SQL导入数据 ===2.1.3 代码配置=== ''conn_all.php'' ====2.2 REDIS部署==== ===2.2.1 REDIS启动=== 创建redis_approve.conf 修改端口 {{:pasted:20170412-135346.png}} 修改启动参数 ''redis-server.exe redis_approve.conf'' ===2.2.2 代码配置=== RedisManager.php ====2.3 Apache==== 修改httpd.conf 端口/ Dirctory 修改httpd_vhost.conf VirtualHost 注意目录访问权限 ''Options -Indexes FollowSymLinks'' 负号表示禁止 [[http://blog.163.com/pqilai77@126/blog/static/491548842012111510637532/|目录权限设置]] =====3 分支维护===== ====3.1 原型数据库==== 原型可以单独建立一个分支 修改VBA工具指向的方法是 template.xlsm {{:pasted:20170424-135402.png}} ====3.2 客户指向==== ProtocolManager.cs ''static public string baseUrl = "http://114.55.218.242:8081/";'' ====3.3 客户端版本号==== GameManager.cs ===== 4 BuildMachine===== http://192.168.0.161:8080/job/UnlimitedTowerBranch/ {{:pasted:20170425-142100.png}} ===== 4 Linux 计划任务示例===== {{:pasted:20180109-205518.png}} ===== 5 服务器列表===== mysql 统一账号密码 redis 统一密码 Linux 统一账号密码 ==== 安卓1区 ==== URL:101.132.161.197 mysql all host : rm-uf6g2k0o93yc9k6s2oi.mysql.rds.aliyuncs.com DB user=>ut_user,prototype=>ut_prototype,game=>ut_game redis prototype:r-uf6329ea092abcc4.redis.rds.aliyuncs.com game:r-uf6329ea092abcc4.redis.rds.aliyuncs.com ==== 安卓2区 ==== URL:/47.100.193.146 mysql user,prototype host : rm-uf6g2k0o93yc9k6s2oi.mysql.rds.aliyuncs.com game host : rm-uf677bmd7ag1s2976.mysql.rds.aliyuncs.com DB user=>ut_user,prototype=>ut_prototype,game=>ut_game2 redis prototype:r-uf6416347c5c8474.redis.rds.aliyuncs.com game:r-uf6416347c5c8474.redis.rds.aliyuncs.com ==== 安卓3区 ==== URL:47.100.58.237 mysql user,prototype host : rm-uf6g2k0o93yc9k6s2oi.mysql.rds.aliyuncs.com game host :rm-uf68rri8ok09co99c.mysql.rds.aliyuncs.com DB user=>ut_user,prototype=>ut_prototype,game=>ut_game3 redis prototype:r-uf603dfe7ab03ba4.redis.rds.aliyuncs.com game:r-uf603dfe7ab03ba4.redis.rds.aliyuncs.com ==== IOS 1区 ==== URL:47.100.183.63 mysql all host : rm-uf6oop308pz2k74tf.mysql.rds.aliyuncs.com DB user=>ut_user,prototype=>ut_prototype,game=>ut_game redis prototype:r-uf6d34bcad4dc744.redis.rds.aliyuncs.com game:r-uf6d34bcad4dc744.redis.rds.aliyuncs.com ===== 6 数据库自增ID规则 ===== ==== user ==== account_info 200001 起 ==== game ==== mail_info 1000001起 character_info 区*100000+100001 起 guild_info 区*100000+1 起