|
脚游闪治神乐脚工架设效劳端+设置文档+拆建教程+开服、跨服设置等
- 游戏效劳器拆建 game_server_id.tar.gz
- 1.复造代码,与game_server拷贝到/data目次下,与app代码到game_server目次下
- 2.修正游戏服设置文件 (config设置文件下)
- (1) 修正master.json文件 (游戏服情况设置)
- 设置启动的情况id,和端心
- (2) 修正servers.json (游戏服对中开放设置)
- 设置情况id
- 游戏服的realhost(效劳器ip)
- 游戏服历程对应端心 (对中开放的端心)
- (3) 修正server_congfig.json (游戏服毗连设置)
- 设置 startPid (玩家独一标识,统一登进服不克不及反复)
- MYSQL地点和端心 (付出疑息存储)
- MONGO地点和端心 (游戏玩家数据,游戏日记存储)
- CURRENT_SERVER (效劳器独一辨认id,用于登进付出毗连辨认)
- gift_code_server的ip端心 (礼包服毗连,用于sdk天生兑换)
- Platform地点端心 (用于毗连登进服)
- 例:
- {
- "game_version": 180000, (游戏版本疑息)
- "startPID":1800000, (玩家pid)
- "debugBattle":false,
- "mysql_pay_server": { (毗连mysql地点,端心)
- "host": "172.31.48.28",
- "port": 3306,
- "user": "root", (毗连mysql的用户暗码)
- "password": "leyun1324",
- "db": "pay_aly009" (创立 mysql 付出的表)
- },
- "mysql_account_server": {
- "host": "172.31.48.28",
- "port": 3306,
- "user": "root",
- "password": "leyun1324",
- "db": "account"
- },
- "ccy_data_server": { (玩家新删,保存查询)
- "host": "111.111.111.111",
- "port": 3306,
- "user": "root",
- "password": "leyun1324",
- "db": "ccy_data"
- },
- "uc_info":{
- "apiKey":"5c04925674920eb58467fb52ce4ef728",
- "cpId":"49347",
- "gameId":"320676"
- },
- "lj_secretKey": "93a95852b5854f88931f29c255664e64",
- "app_secret_360": "43f2e67d84dbab68dd804a14e64718b4",
- "productCode": "p976",
- "pay_url":"http://127.0.0.1:",
- "mongodb_server": { (mongodb设置)
- "host": "172.31.48.28", (mongo的ip端心)
- "port": 27209,
- "db": "game_aly009", (mongo玩家书息数据库)
- "reconnect": 5000
- },
- "mongodb_log_server": {
- "host": "172.31.48.28", (mongodb毗连ip 端心)
- "port": 27209,
- "db": "dc_aly009", (mongo日记疑息数据库)
- "reconnect": 5000
- },
- "cache_config": {
- "maxAge": 300000,
- "max": 2000
- },
- "master":{
- "host":"127.0.0.1",
- "post":"10000"
- },
- "current_server": 9,
- "log_server": {
- "host":"127.0.0.1",
- "httpPort":7937
- },
- "gift_code_server": {
- "host":"172.31.48.19",
- "httpPort":7936
- },
- "platform": {
- "host":"120.92.146.148",
- "httpPort":8930
- },
- "monitor":{
- "host": "127.0.0.1",
- "port": 8300
- },
- "needStartDB": false,
- "current_server_info": [{
- "id": 1,
- "name": "嘉光阴"
- }, {
- "id": 2,
- "name": "内乱测服"
- }],
- "current_server_info_remark": "为了开服需供,server_id设定为数组,初初多是[{}}]如许的构造,开服后[{},{}]"
- }
|
|