diff --git a/src/config b/src/config index 16c2670..d268059 100644 --- a/src/config +++ b/src/config @@ -1,14 +1,15 @@ root = "./" -thread = 8 +thread = 2 logger = "server.log" harbor = 0 start = "main" -- main script bootstrap = "snlua bootstrap" -- The service for bootstrap -logd = 0 -- 是否开启日志 +logd = 1 -- 是否开启日志 servId = 1 baseId = 0 codeurl = "120.26.43.151:9090" cluster = "./src/nodenames.lua" +daemon = "./skynet.pid" lua_path = root .."skynet/lualib/?.lua;"..root.."src/?.lua;"..root.."tools/?.lua" luaservice = root.."skynet/service/?.lua;"..root.."src/?.lua" diff --git a/src/main.lua b/src/main.lua index 9c87633..dfb5684 100644 --- a/src/main.lua +++ b/src/main.lua @@ -7,7 +7,7 @@ skynet.start(function() skynet.newservice("console") skynet.newservice("debug_console", 10001) - local httpd = skynet.newservice("services/httpweb", 8001) + local httpd = skynet.newservice("services/httpweb", 11001) local watchdog = skynet.newservice("services/watchdog", max_client) skynet.call(watchdog, "lua", "start", { @@ -16,9 +16,9 @@ skynet.start(function() httpd = httpd, redishost = "127.0.0.1", - redisport = 6100, - redisdb = 1, - auth = nil, + redisport = 6001, + redisdb = 0, + auth = "zhaolu6001", }) skynet.exit() diff --git a/src/nodenames.lua b/src/nodenames.lua index 214c253..542859d 100644 --- a/src/nodenames.lua +++ b/src/nodenames.lua @@ -1,4 +1,3 @@ -center = "127.0.0.1:9000" +center = "127.0.0.1:13000" -server1 = "127.0.0.1:8101" -server2 = "127.0.0.1:8102" \ No newline at end of file +server1 = "127.0.0.1:13001" -- libgit2 0.21.2