ソースを参照

修改环境配置

neo 1 年間 前
コミット
77bfda0768
共有4 個のファイルを変更した18 個の追加18 個の削除を含む
  1. 4 4
      run/ali-test/clustername.lua
  2. 3 3
      run/ali-test/common.conf
  3. 3 3
      run/ali-test/db.lua
  4. 8 8
      run/ali-test/nodes.lua

+ 4 - 4
run/ali-test/clustername.lua

@@ -1,4 +1,4 @@
1
-master = "127.0.0.1:4000"
2
-login_1_1 = "127.0.0.1:4001"
3
-gate_1_1 = "127.0.0.1:4002"
4
-game_1_1 = "127.0.0.1:4003"
1
+master = "127.0.0.1:4100"
2
+login_1_1 = "127.0.0.1:4101"
3
+gate_1_1 = "127.0.0.1:4102"
4
+game_1_1 = "127.0.0.1:4103"

+ 3 - 3
run/ali-test/common.conf

@@ -1,8 +1,8 @@
1
 mode = "debug"
1
 mode = "debug"
2
 write_log = "11111111"
2
 write_log = "11111111"
3
 
3
 
4
-logpath = "/home/neo/workspace/elm-server/log/"
5
-statistic_path = "/home/neo/workspace/elm-server/log/statistic/"
6
-zip_statistic_path = "/home/neo/workspace/elm-server/log/zip_path/"
4
+logpath = "/home/neo/workspace/box-server/log/"
5
+statistic_path = "/home/neo/workspace/box-server/log/statistic/"
6
+zip_statistic_path = "/home/neo/workspace/box-server/log/zip_path/"
7
 
7
 
8
 system = 'linux'
8
 system = 'linux'

+ 3 - 3
run/ali-test/db.lua

@@ -16,7 +16,7 @@ root["mysql"]["game"] = {
16
     -- 游戏服务数据库
16
     -- 游戏服务数据库
17
     host = "127.0.0.1",
17
     host = "127.0.0.1",
18
     port = 3306,
18
     port = 3306,
19
-    database = "elm",
19
+    database = "box",
20
     user = "test",
20
     user = "test",
21
     password = "aGMtbmVvLWRldi0yMDIzMDQwNw==",
21
     password = "aGMtbmVvLWRldi0yMDIzMDQwNw==",
22
     max_packet_size = 2048 * 2048
22
     max_packet_size = 2048 * 2048
@@ -26,13 +26,13 @@ root["mysql"]["game"] = {
26
 root["redis"]["game"] = {
26
 root["redis"]["game"] = {
27
     {
27
     {
28
         host = "127.0.0.1",
28
         host = "127.0.0.1",
29
-        port = 6380,
29
+        port = 6381,
30
         db = 0,
30
         db = 0,
31
         auth = "aGMtbmVvLWRldi0yMDIzMDQwNw=="
31
         auth = "aGMtbmVvLWRldi0yMDIzMDQwNw=="
32
     },
32
     },
33
     {
33
     {
34
         host = "127.0.0.1",
34
         host = "127.0.0.1",
35
-        port = 6380,
35
+        port = 6381,
36
         db = 0,
36
         db = 0,
37
         auth = "aGMtbmVvLWRldi0yMDIzMDQwNw=="
37
         auth = "aGMtbmVvLWRldi0yMDIzMDQwNw=="
38
     }
38
     }

+ 8 - 8
run/ali-test/nodes.lua

@@ -10,8 +10,8 @@ local root = {}
10
 
10
 
11
 -- master
11
 -- master
12
 root["master"] = {
12
 root["master"] = {
13
-    debugPort = 8000,
14
-    port = 8001,
13
+    debugPort = 8100,
14
+    port = 8101,
15
     agentCount = 1,
15
     agentCount = 1,
16
     bodyLimit = 8192
16
     bodyLimit = 8192
17
 }
17
 }
@@ -19,8 +19,8 @@ root["master"] = {
19
 -- 登陆服
19
 -- 登陆服
20
 root["login_1_1"] = {
20
 root["login_1_1"] = {
21
     ip = "0.0.0.0",
21
     ip = "0.0.0.0",
22
-    debugPort = 8002,
23
-    port = 8003,
22
+    debugPort = 8102,
23
+    port = 8103,
24
     agentCount = 5,
24
     agentCount = 5,
25
     bodyLimit = 8192
25
     bodyLimit = 8192
26
 }
26
 }
@@ -28,18 +28,18 @@ root["login_1_1"] = {
28
 -- 网关
28
 -- 网关
29
 root["gate_1_1"] = {
29
 root["gate_1_1"] = {
30
     ip = "8.134.163.21",
30
     ip = "8.134.163.21",
31
-    debugPort = 8004,
32
-    port = 8005,
31
+    debugPort = 8104,
32
+    port = 8105,
33
     maxClient = 5000,
33
     maxClient = 5000,
34
     nodelay = 1,
34
     nodelay = 1,
35
     protocol = "ws",
35
     protocol = "ws",
36
     weight = 50, -- 权重
36
     weight = 50, -- 权重
37
-    wsPort = 8006 -- websocket端口
37
+    wsPort = 8106 -- websocket端口
38
 }
38
 }
39
 
39
 
40
 -- 游戏服
40
 -- 游戏服
41
 root["game_1_1"] = {
41
 root["game_1_1"] = {
42
-    debugPort = 8007,
42
+    debugPort = 8107,
43
     weight = 50 -- 权重
43
     weight = 50 -- 权重
44
 }
44
 }
45
 
45