mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
21 lines
504 B
Lua
21 lines
504 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 lualog = skynet.newservice("lualog")
|
|
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)
|