Commit b8a2c28bc65c3f0dc00df12b83953ab3b3eab2d9
1 parent
b08bbc1f
配置文件
Showing
4 changed files
with
28 additions
and
4 deletions
Show diff stats
config/basic.lua
@@ -9,4 +9,12 @@ lualoader = "skynet/lualib/loader.lua" | @@ -9,4 +9,12 @@ lualoader = "skynet/lualib/loader.lua" | ||
9 | preload = "./src/preload.lua" -- run preload.lua before every lua service run | 9 | preload = "./src/preload.lua" -- run preload.lua before every lua service run |
10 | cpath = root.."skynet/cservice/?.so" | 10 | cpath = root.."skynet/cservice/?.so" |
11 | lua_cpath = "skynet/luaclib/?.so" | 11 | lua_cpath = "skynet/luaclib/?.so" |
12 | -cluster = "./config/nodenames.lua" | ||
13 | \ No newline at end of file | 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 | \ No newline at end of file | 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 | \ No newline at end of file | 3 | \ No newline at end of file |
4 | +server1 = "10.235.14.88:12001" | ||
5 | +server2 = "10.235.14.223:12001" | ||
6 | \ No newline at end of file | 6 | \ No newline at end of file |