mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-18 18:34:45 +08:00
提交文件上传代码
This commit is contained in:
@@ -33,15 +33,15 @@ func main() {
|
||||
}
|
||||
|
||||
//打开Module死循环监控
|
||||
node.EnableMonitorModule(time.Second*5)
|
||||
|
||||
node.EnableMonitorModule(time.Minute*5)
|
||||
originhttp.SetStaticResource(originhttp.METHOD_GET,"/img/","d:/")
|
||||
nodeCfg, _ := cluster.ReadNodeConfig("./config/nodeconfig.json", cluster.GetNodeId())
|
||||
httpserver := originhttp.NewHttpServerService(nodeCfg.HttpPort) // http服务
|
||||
for _, ca := range nodeCfg.CAFile {
|
||||
httpserver.SetHttps(ca.CertFile, ca.KeyFile)
|
||||
}
|
||||
|
||||
pTcpService := sysservice.NewTcpSocketPbService(":9402")
|
||||
pTcpService := sysservice.NewTcpSocketPbService(":9412")
|
||||
pTcpService.SetServiceName("ls")
|
||||
/*
|
||||
pTcpService2 := sysservice.NewTcpSocketPbService(":9005")
|
||||
|
||||
Reference in New Issue
Block a user