mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 11:03:12 +00:00
20 lines
460 B
Lua
20 lines
460 B
Lua
local skynet = require "skynet"
|
|
|
|
local max_client = 64
|
|
|
|
skynet.start(function()
|
|
print("Server start")
|
|
local service = skynet.newservice("service_mgr")
|
|
skynet.monitor "simplemonitor"
|
|
local console = skynet.newservice("console")
|
|
-- skynet.newservice("debug_console",8000)
|
|
skynet.newservice("simpledb")
|
|
local watchdog = skynet.newservice("watchdog")
|
|
skynet.call(watchdog, "lua", "start", {
|
|
port = 8888,
|
|
maxclient = max_client,
|
|
})
|
|
|
|
skynet.exit()
|
|
end)
|