1
This commit is contained in:
parent
cfa3bb18e5
commit
0e1e958ea9
@ -29,48 +29,32 @@ clear_mysql:
|
||||
select count(id) from role_mail where role_id not in (select id from role)
|
||||
select count(id) FROM `tribe_member` WHERE role_id NOT IN ( SELECT id FROM role)
|
||||
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_488 -e"select count(1),server_id from user group by server_id;"
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_496 -e"select count(1),server_id from user group by server_id;"
|
||||
==========================================step 1===============================================
|
||||
10.10.6.182-183
|
||||
python wjtx.py change_server_status -m maintain -o add -s 488-491
|
||||
10.10.6.186 187
|
||||
python wjtx.py change_server_status -m maintain -o add -s 496-499
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_496 >legend_496.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_497 >legend_497.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_498 >legend_498.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_499 >legend_499.sql
|
||||
|
||||
python wjtx.py init_wjtx_mysql -s 496
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_496 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.186 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 496-499
|
||||
=======================================step 2===============================================
|
||||
10.10.6.182 184
|
||||
python wjtx.py change_server_status -m maintain -o add -s 488-495
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_488 >legend_488.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_489 >legend_489.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_490 >legend_490.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_491 >legend_491.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_492 >legend_492.sql
|
||||
|
||||
python wjtx.py init_wjtx_mysql -s 488
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_488 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.182 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 488-491
|
||||
=======================================step 2===============================================
|
||||
10.10.6.184 185
|
||||
python wjtx.py change_server_status -m maintain -o add -s 492-495
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_492 >legend_492.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_493 >legend_493.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_494 >legend_494.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_495 >legend_495.sql
|
||||
|
||||
python wjtx.py init_wjtx_mysql -s 492
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_492 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.184 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 492-495
|
||||
=======================================step 3===============================================
|
||||
10.10.6.168 178 180
|
||||
python wjtx.py change_server_status -m maintain -o add -s 460-487
|
||||
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_460 >legend_460.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_480 >legend_480.sql
|
||||
mysqldump --default-character-set=utf8 -uwjtx -pmMWA4DKCfeOL -h10.10.6.2 legend_484 >legend_484.sql
|
||||
|
||||
python wjtx.py init_wjtx_mysql -s 460
|
||||
mysql -uroot -p0usmUwROtWjf -h10.10.6.2 legend_460 -e"source all.sql"
|
||||
python import_redis.py 10.10.6.168 6381 out/game_redis.script
|
||||
python import_redis.py 10.10.6.4 6379 out/global_redis.script
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 460
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 480
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 484
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 460-487
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 488
|
||||
redis-cli -h 10.10.6.4 hdel hefu_info 492
|
||||
python wjtx.py change_server_status -m maintain -o remove -s 488-495
|
@ -28,7 +28,7 @@ def read_json(filename):
|
||||
|
||||
def main():
|
||||
csv_data = get_csv()
|
||||
for i in range(1, 4):
|
||||
for i in range(1, 3):
|
||||
check_file = f"server_list_{i}.json"
|
||||
json_data = read_json(check_file)
|
||||
print(f"check {check_file}")
|
||||
|
@ -1,22 +1,22 @@
|
||||
[
|
||||
{
|
||||
"serverid": 488,
|
||||
"redis_host": "10.10.6.182",
|
||||
"serverid": 496,
|
||||
"redis_host": "10.10.6.186",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 489,
|
||||
"redis_host": "10.10.6.182",
|
||||
"serverid": 497,
|
||||
"redis_host": "10.10.6.186",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 490,
|
||||
"redis_host": "10.10.6.183",
|
||||
"serverid": 498,
|
||||
"redis_host": "10.10.6.187",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 491,
|
||||
"redis_host": "10.10.6.183",
|
||||
"serverid": 499,
|
||||
"redis_host": "10.10.6.187",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,22 +1,12 @@
|
||||
[
|
||||
{
|
||||
"serverid": 488,
|
||||
"redis_host": "10.10.6.182",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 492,
|
||||
"redis_host": "10.10.6.184",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 493,
|
||||
"redis_host": "10.10.6.184",
|
||||
"redis_port": 6382
|
||||
},
|
||||
{
|
||||
"serverid": 494,
|
||||
"redis_host": "10.10.6.185",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 495,
|
||||
"redis_host": "10.10.6.185",
|
||||
"redis_port": 6382
|
||||
}
|
||||
]
|
@ -1,17 +0,0 @@
|
||||
[
|
||||
{
|
||||
"serverid": 460,
|
||||
"redis_host": "10.10.6.168",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 480,
|
||||
"redis_host": "10.10.6.178",
|
||||
"redis_port": 6381
|
||||
},
|
||||
{
|
||||
"serverid": 484,
|
||||
"redis_host": "10.10.6.180",
|
||||
"redis_port": 6381
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user