Commit 53012d9a821156570469eb3c8729fbd00f4635ed

Authored by zhouhaihai
1 parent 76464267

配置文件修改

Showing 3 changed files with 9 additions and 9 deletions   Show diff stats
src/config
1 1 root = "./"
2   -thread = 8
  2 +thread = 2
3 3 logger = "server.log"
4 4 harbor = 0
5 5 start = "main" -- main script
6 6 bootstrap = "snlua bootstrap" -- The service for bootstrap
7   -logd = 0 -- 是否开启日志
  7 +logd = 1 -- 是否开启日志
8 8 servId = 1
9 9 baseId = 0
10 10 codeurl = "120.26.43.151:9090"
11 11 cluster = "./src/nodenames.lua"
  12 +daemon = "./skynet.pid"
12 13  
13 14 lua_path = root .."skynet/lualib/?.lua;"..root.."src/?.lua;"..root.."tools/?.lua"
14 15 luaservice = root.."skynet/service/?.lua;"..root.."src/?.lua"
... ...
src/main.lua
... ... @@ -7,7 +7,7 @@ skynet.start(function()
7 7 skynet.newservice("console")
8 8 skynet.newservice("debug_console", 10001)
9 9  
10   - local httpd = skynet.newservice("services/httpweb", 8001)
  10 + local httpd = skynet.newservice("services/httpweb", 11001)
11 11 local watchdog = skynet.newservice("services/watchdog", max_client)
12 12  
13 13 skynet.call(watchdog, "lua", "start", {
... ... @@ -16,9 +16,9 @@ skynet.start(function()
16 16 httpd = httpd,
17 17  
18 18 redishost = "127.0.0.1",
19   - redisport = 6100,
20   - redisdb = 1,
21   - auth = nil,
  19 + redisport = 6001,
  20 + redisdb = 0,
  21 + auth = "zhaolu6001",
22 22 })
23 23  
24 24 skynet.exit()
... ...
src/nodenames.lua
1   -center = "127.0.0.1:9000"
  1 +center = "127.0.0.1:13000"
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 = "127.0.0.1:13001"
... ...