Commit b8a2c28bc65c3f0dc00df12b83953ab3b3eab2d9

Authored by zhouhaihai
1 parent b08bbc1f

配置文件

config/basic.lua
... ... @@ -9,4 +9,12 @@ lualoader = "skynet/lualib/loader.lua"
9 9 preload = "./src/preload.lua" -- run preload.lua before every lua service run
10 10 cpath = root.."skynet/cservice/?.so"
11 11 lua_cpath = "skynet/luaclib/?.so"
12   -cluster = "./config/nodenames.lua"
13 12 \ No newline at end of file
  13 +cluster = "./config/nodenames.lua"
  14 +
  15 +codeurl = "10.235.14.37:9001"
  16 +logd = 0 -- 是否开启日志
  17 +thread = 4
  18 +max_client = 2000
  19 +server_port = 20001
  20 +debug_port = 10001
  21 +httpweb_port = 11001
14 22 \ No newline at end of file
... ...
config/nodenames.lua
1   -center = "192.168.8.198:9000"
  1 +center = "10.235.14.37:12000"
2 2  
3   -server1 = "127.0.0.1:8101"
4   -server2 = "127.0.0.1:8102"
5 3 \ No newline at end of file
  4 +server1 = "10.235.14.88:12001"
  5 +server2 = "10.235.14.223:12001"
6 6 \ No newline at end of file
... ...
config/server1.lua 0 → 100644
... ... @@ -0,0 +1,8 @@
  1 +include("basic.lua")
  2 +
  3 +
  4 +servId = 1
  5 +redis_host = "10.235.0.167"
  6 +redis_port = 6379
  7 +redis_db = 1
  8 +redis_auth = "VraDMcdX=Jq!Ess4"
0 9 \ No newline at end of file
... ...
config/server2.lua 0 → 100644
... ... @@ -0,0 +1,8 @@
  1 +include("basic.lua")
  2 +
  3 +
  4 +servId = 2
  5 +redis_host = "10.235.0.167"
  6 +redis_port = 6379
  7 +redis_db = 2
  8 +redis_auth = "VraDMcdX=Jq!Ess4"
0 9 \ No newline at end of file
... ...