main_mongodb.lua 236 B

12345678910111213
  1. local skynet = require "skynet"
  2. skynet.start(function()
  3. print("Main Server start")
  4. local console = skynet.newservice(
  5. "testmongodb", "127.0.0.1", 27017, "testdb", "test", "test"
  6. )
  7. print("Main Server exit")
  8. skynet.exit()
  9. end)