@@ -0,0 +1,5 @@
+root = "../../"
+lualoader = root.."skynet/lualib/loader.lua"
+luaservice = "../service/?.lua;" .."../service/?/init.lua;".. root.."skynet/service/?.lua;"
+lua_path = "../luaclib_src/lua-protobuf-master/?.lua;" .. "../etc/?.lua;" .. "../msg/?.lua;".."../lualib/?.lua;" .."../lualib/?/init.lua;" .. root.."lualib/?.lua;" .. root.."skynet/lualib/?.lua;" .. root.."skynet/lualib/?/init.lua"
+lua_cpath ="../luaclib_src/lua-protobuf-master/?.so;".. root.."luaclib/?.so;" .. root.."skynet/luaclib/?.so;".. "../luaclib/?.so;"
@@ -0,0 +1,16 @@
+--必须配置
+include "config.path"
+thread = 8 --启用多少个工作线程
+cpath = root.."skynet/cservice/?.so" --用C编写的服务模块的位置
+bootstrap = "snlua bootstrap" --启动的第一个服务
+
+--bootstrap配置项
+start = "main" --主程序入口
+harbor = 0 --不使用主从节点模式
+--后台模式
+--daemon = "./skynet.pid"
+--logger = "./userlog"
+--节点
+node = "node1"
@@ -0,0 +1,37 @@
+return {
+ --集群
+ cluster = {
+ node1 = "127.0.0.1:7771",
+ -- node2 = "127.0.0.1:7772",
+ },
+ --agentmgr
+ agentmgr = { node = "node1" },
+ --scene
+ scene = {
+ node1 = {1001, 1002},
+ --node2 = {1003},
+ --节点1
+ node1 = {
+ gateway = {
+ [1] = {port=8001},
+ -- [2] = {port=8002},
+ login = {
+ [1] = {},
+ -- [2] = {},
+ --节点2
+ node2 = {
+ [1] = {port=8011},
+ -- [2] = {port=8022},
+}