mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
single node mode
This commit is contained in:
@@ -3,6 +3,7 @@ local cluster = require "cluster"
|
||||
|
||||
skynet.start(function()
|
||||
skynet.newservice("simpledb")
|
||||
skynet.call("SIMPLEDB", "lua", "SET", "a", "foobar")
|
||||
print(skynet.call("SIMPLEDB", "lua", "SET", "a", "foobar"))
|
||||
print(skynet.call("SIMPLEDB", "lua", "GET", "a"))
|
||||
cluster.open(2528)
|
||||
end)
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
thread = 8
|
||||
logger = nil
|
||||
harbor = 1
|
||||
address = "127.0.0.1:2526"
|
||||
master = "127.0.0.1:2013"
|
||||
harbor = 0
|
||||
start = "cluster1"
|
||||
bootstrap = "snlua bootstrap" -- The service for bootstrap
|
||||
standalone = "0.0.0.0:2013"
|
||||
luaservice = "./service/?.lua;./test/?.lua;./examples/?.lua"
|
||||
lualoader = "lualib/loader.lua"
|
||||
cpath = "./cservice/?.so"
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
thread = 8
|
||||
logger = nil
|
||||
harbor = 1
|
||||
address = "127.0.0.1:2527"
|
||||
master = "127.0.0.1:2014"
|
||||
harbor = 0
|
||||
start = "cluster2"
|
||||
bootstrap = "snlua bootstrap" -- The service for bootstrap
|
||||
standalone = "0.0.0.0:2014"
|
||||
luaservice = "./service/?.lua;./test/?.lua;./examples/?.lua"
|
||||
lualoader = "lualib/loader.lua"
|
||||
cpath = "./cservice/?.so"
|
||||
|
||||
Reference in New Issue
Block a user