Parcourir la source

[tag]Sers2.1.1.300-1 修改发布命令

lith il y a 5 ans
Parent
commit
6ba74edb7a
38 fichiers modifiés avec 386 ajouts et 128 suppressions
  1. 0 11
      dotnet/Doc/Linux/SupervisorConfigFile/CGateway.conf
  2. 0 11
      dotnet/Doc/Linux/SupervisorConfigFile/Demo.conf
  3. 0 11
      dotnet/Doc/Linux/SupervisorConfigFile/Gateway.conf
  4. 0 11
      dotnet/Doc/Linux/SupervisorConfigFile/Gover.conf
  5. 0 11
      dotnet/Doc/Linux/SupervisorConfigFile/Robot.conf
  6. 0 11
      dotnet/Doc/Linux/SupervisorConfigFile/ServiceCenter.conf
  7. 0 13
      dotnet/Doc/Linux/SupervisorConfigFile/守护进程.txt
  8. 0 11
      dotnet/Doc/Linux/readme.md
  9. 8 8
      dotnet/Doc/Release/ZZZ_copySersStatic.bat
  10. 25 0
      dotnet/Doc/Release/publish CL压测.bat
  11. 21 0
      dotnet/Doc/Release/publish Sers单体压测.bat
  12. 5 5
      dotnet/Doc/Release/publish sers.bat
  13. 0 18
      dotnet/Doc/Release/push sers_lib to Microsoft.bat
  14. 2 0
      dotnet/Doc/ReleaseFile/CL压测/StartClient.bat
  15. 5 0
      dotnet/Doc/ReleaseFile/CL压测/StartServer.bat
  16. 0 0
      dotnet/Doc/ReleaseFile/SersPublish/01 ServiceCenter.bat
  17. 0 0
      dotnet/Doc/ReleaseFile/SersPublish/01 start 4580.bat
  18. 0 0
      dotnet/Doc/ReleaseFile/SersPublish/02 Gover.bat
  19. 0 0
      dotnet/Doc/ReleaseFile/SersPublish/03 Gateway.bat
  20. 0 0
      dotnet/Doc/ReleaseFile/SersPublish/04 Demo.bat
  21. 0 0
      dotnet/Doc/ReleaseFile/SersPublish/05 Robot.bat
  22. 0 0
      dotnet/Doc/ReleaseFile/SersPublish/Demo/Did.SersLoader.Demo.runtimeconfig.json
  23. 0 0
      dotnet/Doc/ReleaseFile/SersPublish/Gateway/App.Gateway.runtimeconfig.json
  24. 0 0
      dotnet/Doc/ReleaseFile/SersPublish/Gover/App.Gover.Gateway.runtimeconfig.json
  25. 0 0
      dotnet/Doc/ReleaseFile/SersPublish/Robot/App.Robot.Station.runtimeconfig.json
  26. 0 0
      dotnet/Doc/ReleaseFile/SersPublish/ServiceCenter/App.ServiceCenter.runtimeconfig.json
  27. 8 0
      dotnet/Doc/ReleaseFile/Sers单体压测/01 ServiceCenter.bat
  28. 6 0
      dotnet/Doc/ReleaseFile/Sers单体压测/01 start 4580.bat
  29. 303 0
      dotnet/Doc/ReleaseFile/Sers单体压测/ServiceCenter/appsettings.json
  30. 0 0
      dotnet/Doc/ReleaseFile/bash/CGateway.bash
  31. 0 0
      dotnet/Doc/ReleaseFile/bash/Demo.bash
  32. 0 0
      dotnet/Doc/ReleaseFile/bash/Gateway.bash
  33. 0 0
      dotnet/Doc/ReleaseFile/bash/Gover.bash
  34. 0 0
      dotnet/Doc/ReleaseFile/bash/Robot.bash
  35. 0 0
      dotnet/Doc/ReleaseFile/bash/ServiceCenter.bash
  36. 0 0
      dotnet/Doc/ReleaseFile/bash/startall.bash
  37. 0 0
      dotnet/Doc/ReleaseFile/bash/startup.bash
  38. 3 7
      删除发布文件.bat

+ 0 - 11
dotnet/Doc/Linux/SupervisorConfigFile/CGateway.conf

@@ -1,11 +0,0 @@
-[program:CGateway]
-command=/root/netapp/CGateway/Gateway
-directory=/root/netapp/CGateway
-environment=ASPNETCORE__ENVIRONMENT=Production
-user=root
-stopsignal=INT
-autostart=true
-autorestart=true
-startsecs=1
-stderr_logfile=/root/netapp/supervisor_log/CGateway.err.log
-stdout_logfile=/root/netapp/supervisor_log/CGateway.out.log

+ 0 - 11
dotnet/Doc/Linux/SupervisorConfigFile/Demo.conf

@@ -1,11 +0,0 @@
-[program:Demo]
-command=dotnet Did.SersLoader.Demo.dll
-directory=/root/netapp/Demo
-environment=ASPNETCORE__ENVIRONMENT=Production
-user=root
-stopsignal=INT
-autostart=true
-autorestart=true
-startsecs=1
-stderr_logfile=/root/netapp/supervisor_log/Demo.err.log
-stdout_logfile=/root/netapp/supervisor_log/Demo.out.log

+ 0 - 11
dotnet/Doc/Linux/SupervisorConfigFile/Gateway.conf

@@ -1,11 +0,0 @@
-[program:Gateway]
-command=dotnet App.Gateway.dll
-directory=/root/netapp/Gateway
-environment=ASPNETCORE__ENVIRONMENT=Production
-user=root
-stopsignal=INT
-autostart=true
-autorestart=true
-startsecs=1
-stderr_logfile=/root/netapp/supervisor_log/Gateway.err.log
-stdout_logfile=/root/netapp/supervisor_log/Gateway.out.log

+ 0 - 11
dotnet/Doc/Linux/SupervisorConfigFile/Gover.conf

@@ -1,11 +0,0 @@
-[program:Gover]
-command=dotnet App.Gover.Gateway.dll
-directory=/root/netapp/Gover
-environment=ASPNETCORE__ENVIRONMENT=Production
-user=root
-stopsignal=INT
-autostart=true
-autorestart=true
-startsecs=1
-stderr_logfile=/root/netapp/supervisor_log/Gover.err.log
-stdout_logfile=/root/netapp/supervisor_log/Gover.out.log

+ 0 - 11
dotnet/Doc/Linux/SupervisorConfigFile/Robot.conf

@@ -1,11 +0,0 @@
-[program:Robot]
-command=dotnet App.Robot.Station.dll
-directory=/root/netapp/Robot
-environment=ASPNETCORE__ENVIRONMENT=Production
-user=root
-stopsignal=INT
-autostart=true
-autorestart=true
-startsecs=1
-stderr_logfile=/root/netapp/supervisor_log/Robot.err.log
-stdout_logfile=/root/netapp/supervisor_log/Robot.out.log

+ 0 - 11
dotnet/Doc/Linux/SupervisorConfigFile/ServiceCenter.conf

@@ -1,11 +0,0 @@
-[program:ServiceCenter]
-command=dotnet App.ServiceCenter.dll
-directory=/root/netapp/ServiceCenter
-environment=ASPNETCORE__ENVIRONMENT=Production
-user=root
-stopsignal=INT
-autostart=true
-autorestart=true
-startsecs=1
-stderr_logfile=/root/netapp/supervisor_log/ServiceCenter.err.log
-stdout_logfile=/root/netapp/supervisor_log/ServiceCenter.out.log

+ 0 - 13
dotnet/Doc/Linux/SupervisorConfigFile/守护进程.txt

@@ -1,13 +0,0 @@
--------------------------------------------------------------------------
-守护进程
-192.168.1.140:8001
-
-配置文件路径:
-etc/supervisor/conf.d/xxxxxxx.conf
-
-重启命令:
-supervisorctl reread
-supervisorctl update
-
-supervisorctl restart ServiceCenter
- 

+ 0 - 11
dotnet/Doc/Linux/readme.md

@@ -1,11 +0,0 @@
-# Linux部署
-
-1.把项目文件夹(Sers-Release)复制到系统/root/netapp/ 文件夹下
-
-2.复制对应的Supervisor 配置文件
-
-3.打开守护进程UI界面,开启各个项目
-   (ServiceCenter  Gover 必须打开)
-  (其他按情况打开)
-
-4. 服务治理UI:  http://ip:6022/index.html

+ 8 - 8
dotnet/Doc/Release/ZZZ_copySersStatic.bat

@@ -1,29 +1,29 @@
 
 
-@echo copy Sers-CentosConfig
-xcopy  "..\Linux\Sers-CentosConfig" "." /e /i /r /y
+@echo copy ReleaseFile
+xcopy  "..\ReleaseFile\SersPublish" "SersPublish" /e /i /r /y
 
 
 @echo copy ServiceCenter wwwroot
- xcopy  "..\..\netcore\ServiceCenter\App.Gover.Gateway\wwwroot" "ServiceCenter\wwwroot" /e /i /r /y
+ xcopy  "..\..\netcore\ServiceCenter\App.Gover.Gateway\wwwroot" "SersPublish\ServiceCenter\wwwroot" /e /i /r /y
 
 @echo copy Gover wwwroot
-xcopy  "..\..\netcore\ServiceCenter\App.Gover.Gateway\wwwroot" "Gover\wwwroot" /e /i /r /y
+xcopy  "..\..\netcore\ServiceCenter\App.Gover.Gateway\wwwroot" "SersPublish\Gover\wwwroot" /e /i /r /y
 
 @echo copy Robot wwwroot
-xcopy  "..\..\netcore\Station\App.Robot.Station\wwwroot" "Robot\wwwroot" /e /i /r /y
+xcopy  "..\..\netcore\Station\App.Robot.Station\wwwroot" "SersPublish\Robot\wwwroot" /e /i /r /y
 
 
 
 
 @echo copy  xml of ServiceCenter
-xcopy  "..\..\netcore\ServiceCenter\App.ServiceCenter\bin\Debug\netcoreapp2.1\*.xml" "ServiceCenter" /i /r /y
+xcopy  "..\..\netcore\ServiceCenter\App.ServiceCenter\bin\Debug\netcoreapp2.1\*.xml" "SersPublish\ServiceCenter" /i /r /y
  
 @echo copy  xml of Robot
-xcopy  "..\..\netcore\Station\App.Robot.Station\bin\Debug\netcoreapp2.1\*.xml" "Robot" /i /r /y
+xcopy  "..\..\netcore\Station\App.Robot.Station\bin\Debug\netcoreapp2.1\*.xml" "SersPublish\Robot" /i /r /y
  
 @echo copy  xml of Demo
-xcopy  "..\..\StationDemo\SersLoader\Did.SersLoader.Demo\bin\Debug\netcoreapp2.1\*.xml" "Demo" /i /r /y
+xcopy  "..\..\StationDemo\SersLoader\Did.SersLoader.Demo\bin\Debug\netcoreapp2.1\*.xml" "SersPublish\Demo" /i /r /y
 
 @echo succeed
  

+ 25 - 0
dotnet/Doc/Release/publish CL压测.bat

@@ -0,0 +1,25 @@
+cd /d ../../
+
+echo 'publish Client'
+cd /d Sers\Sers.CL\Test\CommunicationManage\Client
+dotnet build --configuration Release
+dotnet publish --configuration Release --output ..\..\..\..\..\Doc\Release\CL压测\CLClient
+cd /d ../../../../../
+   
+echo 'publish Client'
+cd /d Sers\Sers.CL\Test\CommunicationManage\Server
+dotnet build --configuration Release
+dotnet publish --configuration Release --output ..\..\..\..\..\Doc\Release\CL压测\CLServer
+cd /d ../../../../../
+
+cd /d Doc\Release
+
+@echo copy from ReleaseFile
+ xcopy  "..\ReleaseFile\CL压测" "CL压测" /e /i /r /y
+
+echo 'publish CL压测 succeed!'
+echo 'publish CL压测 succeed!'
+echo 'publish CL压测 succeed!'
+
+
+pause

+ 21 - 0
dotnet/Doc/Release/publish Sers单体压测.bat

@@ -0,0 +1,21 @@
+
+
+@echo copy  ServiceCenter
+xcopy  "SersPublish\ServiceCenter" "Sers等极揤聆\ServiceCenter" /e /i /r /y
+
+@echo copy  demo
+xcopy  "SersPublish\Demo\wwwroot" "Sers等极揤聆\ServiceCenter\wwwroot" /e /i /r /y
+xcopy  "SersPublish\Demo\Did.SersLoader.Demo.dll" "Sers等极揤聆\ServiceCenter" /i /r /y
+xcopy  "SersPublish\Demo\Did.SersLoader.Demo.pdb" "Sers等极揤聆\ServiceCenter" /i /r /y
+xcopy  "SersPublish\Demo\Did.SersLoader.Demo.xml" "Sers等极揤聆\ServiceCenter" /i /r /y
+
+
+@echo copy  xml of Robot
+xcopy  "SersPublish\Robot\wwwroot" "Sers等极揤聆\ServiceCenter\wwwroot" /e /i /r /y
+xcopy  "SersPublish\Robot\App.Robot.Station.dll" "Sers等极揤聆\ServiceCenter" /i /r /y
+xcopy  "SersPublish\Robot\App.Robot.Station.pdb" "Sers等极揤聆\ServiceCenter" /i /r /y
+xcopy  "SersPublish\Robot\App.Robot.Station.xml" "Sers等极揤聆\ServiceCenter" /i /r /y
+
+
+@echo copy ReleaseFile
+xcopy  "..\ReleaseFile\Sers等极揤聆" "Sers等极揤聆" /e /i /r /y

+ 5 - 5
dotnet/Doc/Release/publish sers.bat

@@ -3,32 +3,32 @@ cd /d ../../
 echo 'publish Gateway'
 cd /d netcore\Gateway\App.Gateway
 dotnet build --configuration Release
-dotnet publish --configuration Release --output ..\..\..\Doc\Release\Gateway 
+dotnet publish --configuration Release --output ..\..\..\Doc\Release\SersPublish\Gateway 
 cd /d ../../../
  
 echo 'publish Gover'
 cd /d netcore\ServiceCenter\App.Gover.Gateway
 dotnet build --configuration Release
-dotnet publish --configuration Release --output ..\..\..\Doc\Release\Gover 
+dotnet publish --configuration Release --output ..\..\..\Doc\Release\SersPublish\Gover 
 cd /d ../../../
  
 echo 'publish ServiceCenter'
 cd /d netcore\ServiceCenter\App.ServiceCenter
 dotnet build --configuration Release
-dotnet publish --configuration Release --output ..\..\..\Doc\Release\ServiceCenter
+dotnet publish --configuration Release --output ..\..\..\Doc\Release\SersPublish\ServiceCenter
 cd /d ../../../ 
 
 echo 'publish Robot'
 cd /d netcore\Station\App.Robot.Station
 dotnet build --configuration Release
-dotnet publish --configuration Release --output ..\..\..\Doc\Release\Robot
+dotnet publish --configuration Release --output ..\..\..\Doc\Release\SersPublish\Robot
 cd /d ../../../
 
 
 echo 'publish Demo'
 cd /d StationDemo\SersLoader\Did.SersLoader.Demo
 dotnet build --configuration Release
-dotnet publish --configuration Release --output ..\..\..\Doc\Release\Demo
+dotnet publish --configuration Release --output ..\..\..\Doc\Release\SersPublish\Demo
 cd /d ../../../
 
  

+ 0 - 18
dotnet/Doc/Release/push sers_lib to Microsoft.bat

@@ -1,18 +0,0 @@
-@echo off 
-
-cd /d nuget
- 
-for /R %%s in (*.nupkg) do ( 
-echo push %%s 
-dotnet nuget push %%s  -k oy2icd63utqxwo7fylpqdfrs46rt5mzehjsxy3ed7ca3je  -s https://api.nuget.org/v3/index.json
-) 
-
-
-cd /d ..
-
-echo 'push sers_lib to Microsoft succeedŁĄ'
-echo 'push sers_lib to Microsoft succeedŁĄ'
-echo 'push sers_lib to Microsoft succeedŁĄ'
-
-
-pause

+ 2 - 0
dotnet/Doc/ReleaseFile/CL压测/StartClient.bat

@@ -0,0 +1,2 @@
+dotnet CLClient/CLClient.dll
+pause

+ 5 - 0
dotnet/Doc/ReleaseFile/CL压测/StartServer.bat

@@ -0,0 +1,5 @@
+dotnet CLServer/CLServer.dll
+pause
+
+
+ 

+ 0 - 0
dotnet/Doc/Release/01 ServiceCenter.bat → dotnet/Doc/ReleaseFile/SersPublish/01 ServiceCenter.bat


+ 0 - 0
dotnet/Doc/Release/01 start 4580.bat → dotnet/Doc/ReleaseFile/SersPublish/01 start 4580.bat


+ 0 - 0
dotnet/Doc/Release/02 Gover.bat → dotnet/Doc/ReleaseFile/SersPublish/02 Gover.bat


+ 0 - 0
dotnet/Doc/Release/03 Gateway.bat → dotnet/Doc/ReleaseFile/SersPublish/03 Gateway.bat


+ 0 - 0
dotnet/Doc/Release/04 Demo.bat → dotnet/Doc/ReleaseFile/SersPublish/04 Demo.bat


+ 0 - 0
dotnet/Doc/Release/05 Robot.bat → dotnet/Doc/ReleaseFile/SersPublish/05 Robot.bat


+ 0 - 0
dotnet/Doc/Linux/Sers-CentosConfig/Demo/Did.SersLoader.Demo.runtimeconfig.json → dotnet/Doc/ReleaseFile/SersPublish/Demo/Did.SersLoader.Demo.runtimeconfig.json


+ 0 - 0
dotnet/Doc/Linux/Sers-CentosConfig/Gateway/App.Gateway.runtimeconfig.json → dotnet/Doc/ReleaseFile/SersPublish/Gateway/App.Gateway.runtimeconfig.json


+ 0 - 0
dotnet/Doc/Linux/Sers-CentosConfig/Gover/App.Gover.Gateway.runtimeconfig.json → dotnet/Doc/ReleaseFile/SersPublish/Gover/App.Gover.Gateway.runtimeconfig.json


+ 0 - 0
dotnet/Doc/Linux/Sers-CentosConfig/Robot/App.Robot.Station.runtimeconfig.json → dotnet/Doc/ReleaseFile/SersPublish/Robot/App.Robot.Station.runtimeconfig.json


+ 0 - 0
dotnet/Doc/Linux/Sers-CentosConfig/ServiceCenter/App.ServiceCenter.runtimeconfig.json → dotnet/Doc/ReleaseFile/SersPublish/ServiceCenter/App.ServiceCenter.runtimeconfig.json


+ 8 - 0
dotnet/Doc/ReleaseFile/Sers单体压测/01 ServiceCenter.bat

@@ -0,0 +1,8 @@
+
+:begin
+dotnet ServiceCenter/App.ServiceCenter.dll
+
+ TIMEOUT /T 1
+@echo restart
+goto begin
+ 

+ 6 - 0
dotnet/Doc/ReleaseFile/Sers单体压测/01 start 4580.bat

@@ -0,0 +1,6 @@
+start http://localhost:4580/_gover_/index.html?user=admin_123456
+
+ 
+
+ 
+ 

+ 303 - 0
dotnet/Doc/ReleaseFile/Sers单体压测/ServiceCenter/appsettings.json

@@ -0,0 +1,303 @@
+{
+
+  "Sers": {
+    /* 通讯层配置 */
+    "CL": {
+      /* 共用配置,子项共用,覆写子项未指定的配置 */
+      "Config": {
+
+        /* 请求超时时间(单位ms,默认60000) */
+        "requestTimeoutMs": 60000,
+
+        /* 后台处理消息的线程个数(单位个,默认2) */
+        "workThreadCount":1,
+
+        //HeartBeat  
+        /* 心跳检测时间间隔(单位ms,默认10000,若指定为0则不进行心跳检测) */
+        "heartBeatIntervalMs": 10000,
+        /* 心跳检测超时时间(单位ms,默认30000) */
+        "heartBeatTimeoutMs": 30000,
+        /* 心跳检测失败重试次数(单位次,默认10) */
+        "heartBeatRetryCount": 10,
+
+        /* 连接秘钥,用以验证连接安全性。服务端和客户端必须一致 */
+        "secretKey": "SersCL"
+      },
+      /* one conn is one channel.can be multiable */
+      "Server": [
+        {
+          // Socket.Iocp
+          /* (x.1) type - Iocp */
+          /* the class of Builder in assemblyFile  */
+          "className": "Sers.CL.Socket.Iocp.OrganizeServerBuilder",
+
+
+          /* (x.2) conn config */
+          /* 服务端 监听地址。若不指定则监听所有网卡。例如: "127.0.0.1"、"sersms.com"。*/
+          //"host": "127.0.0.1",
+          /* 服务端 监听端口号。例如: 4501 */
+          "port": 4501
+        }        
+      ]
+    },
+
+    /* LocalApiService 配置,可不指定 */
+    "LocalApiService": {
+
+      /* 后台服务的线程个数(单位个,默认0,代表不开启服务)*/
+      "workThreadCount": 4,
+
+      /* 超时时间,若不指定则后台任务永不超时。(主动关闭超过此时间的任务,实际任务强制关闭的时间会在1倍超时时间到2倍超时时间内)。单位:ms。*/
+      //"timeout_ms": 10000,
+
+
+      /* 是否 输出本地Api的调用信息到(ApiTrace)Log文件。默认:false */
+      "PrintTrace": false,
+
+
+      /* 静态文件映射器。映射站点静态文件,可多个,可不指定 */
+      "//StaticFileMap": [
+        {
+          /* api路由前缀,例如 "/demo/ui/*" */
+          "route": "/demo/ui/*",
+          /* api描述,静态文件描述 */
+          "apiName": "demo站点静态文件",
+          /* 静态文件路径。可为相对路径或绝对路径。若未指定存在的文件夹则默认为当前目录下的wwwroot文件夹。demo:"wwwroot/demo" */
+          "staticFileDirectory": "wwwroot/demo",
+          /* 额外静态文件类型映射配置的文件路径(mappings.json),例如"wwwroot/mappings.json"。若不指定(或指定的文件不存在)则不添加额外文件类型映射配置 */
+          "ContentTypeMapFile": "mappings.json"
+        }
+      ],
+
+
+      /* 默认站点名称,可多个,可不指定 */
+      //"apiStationNames": [ "demo" ],
+
+      /* Api加载器配置 */
+      "ApiLoaders": [
+        {
+          //(通过反射从此包中获取要加载的api)
+          /* 在此Assembly中查找服务(如 App.StationDemo.Station.dll)(assembly、assemblyFile、assemblyName 指定任一即可) */
+          "assemblyFile": "Did.SersLoader.Demo.dll",
+
+          /* ApiStation名称。可不指定。(优先级从高到低:  apiStationName_Force 、 在代码上的SsStationNameAttribute特性指定 、 apiStationName 、 appsettings.json指定) */
+          "apiStationName": "demo"
+        },
+        {
+          /* ApiStation名称。可不指定。(优先级从高到低:  apiStationName_Force 、 在代码上的SsStationNameAttribute特性指定 、 apiStationName 、 appsettings.json指定) */
+          "apiStationName": "_robot_",
+
+          /* 在此Assembly中查找服务(如 App.StationDemo.Station.dll)(assembly、assemblyFile、assemblyName 指定任一即可) */
+          "assemblyFile": "App.Robot.Station.dll"
+        }
+
+
+      ],
+
+
+      //调用api前的事件,可不指定
+      "//BeforeCallApi": [
+        {
+          //Bearer 在调用接口前,会获取 rpcData.http.headers.Authorization(格式为 "Bearer xxxxxx"),并作为参数调用接口api_verifyAt,把返回数据放到 rpcData.user.userInfo
+          "className": "Bearer",
+          /* 验证at接口的地址 */
+          "api_verifyAt": "/AuthCenter/account/verifyAt",
+          /* 验证at接口的httpMethod。(如 GET POST 可不指定) */
+          "api_httpMethod": "POST"
+        },
+
+        {
+          //AccountInCookie 在调用接口前,会获取 rpcData.http.headers.Cookie(格式为 "user=xxx;c=7")中的user,在账号列表中比对userToken,回写 CallerSource(rpcData.caller.source) 和 userInfo(rpcData.user.userInfo)
+          "className": "AccountInCookie",
+          "account": [
+            {
+              "userToken": "admin_123456",
+              //"CallerSource": "Internal",
+              "userInfo": {
+                "name": "超级管理员",
+                "入口": "Gover网关"
+              }
+            }
+          ]
+        }
+      ]
+    },
+
+
+
+    /* ServiceStation配置,可不指定 */
+    "ServiceStation": {
+
+      /* 自动上报cpu Usage。不指定则不上报 */
+      "//UsageReporter": {
+        /* 上报时间间隔(单位:秒) */
+        "intervalSecond": 2
+      },
+
+
+      /* serviceStation站点信息 */
+      "serviceStationInfo": {
+        /* 服务站点名称 */
+        "serviceStationName": "ServiceCenter",
+
+        /* 服务站点版本信息,若不指定则为入口链接库的版本号 */
+        //"stationVersion": "2.1.1",
+
+        /* [json]服务站点额外信息,可不指定 */
+        "info": null
+      }
+
+    },
+
+
+
+    /* ServiceCenter 配置,可不指定 */
+    "ServiceCenter": {
+
+      /* 是否 输出Api注册事件到(Info)Log文件。默认:true  */
+      "ApiRegistEvent_Print": true,
+
+
+      /* api路由管理方式,可不指定。可为:"RESTful","IgnoreHttpMethod"。若不指定或未指定有效值,则默认为"RESTful" */
+      //"ApiRouteType": "IgnoreHttpMethod",
+
+
+      //调用api前的事件,可不指定
+      "BeforeCallApi": [
+        {
+          //Bearer 在调用接口前,会获取 rpcData.http.headers.Authorization(格式为 "Bearer xxxxxx"),并作为参数调用接口api_verifyAt,把返回数据放到 rpcData.user.userInfo
+          //"className": "Bearer",
+          /* 验证at接口的地址 */
+          "api_verifyAt": "/AuthCenter/account/verifyAt",
+          /* 验证at接口的httpMethod。(如 GET POST 可不指定) */
+          "api_httpMethod": "POST"
+        },
+
+        {
+          //AccountInCookie 在调用接口前,会获取 rpcData.http.headers.Cookie(格式为 "user=xxx;c=7")中的user,在账号列表中比对userToken,回写 CallerSource(rpcData.caller.source) 和 userInfo(rpcData.user.userInfo)
+          //"className": "AccountInCookie",
+          "account": [
+            {
+              "userToken": "admin_123456",
+              //"CallerSource": "Internal",
+              "userInfo": {
+                "name": "超级管理员",
+                "入口": "Gover网关"
+              }
+            }
+          ]
+        }
+      ]
+
+    },
+
+
+
+
+
+    /* 网关配置(同目录下可以指定mappings.json文件) ,可不指定 */
+    "Gateway": {
+
+      /* Rpc配置,可不指定 */
+      "Rpc": {
+        /* 网关转发的请求中的rpc 信息中的 CallerSource。(暗指调用来源,默认"OutSide")  */
+        //"CallerSource": "OutSide"
+      },
+
+      "WebHost": {
+
+        /* url,可多个 */
+        "urls": [ "http://*:4580" ],
+
+        /* http回应中的默认Content-Type。若不指定则默认为 "application/json; charset="+Serialization.Instance.charset  */
+        "//ResponseDefaultContentType": "application/json; charset=UTF-8",
+
+        /* 静态文件路径。可为相对路径或绝对路径。若为空字符串则默认为当前目录下的wwwroot文件夹。若不指定(null)则不映射静态文件。 */
+        "wwwroot": ""
+      },
+
+
+      //调用api前的事件,可不指定
+      "BeforeCallApi": [
+        {
+          //Bearer 在调用接口前,会获取 rpcData.http.headers.Authorization(格式为 "Bearer xxxxxx"),并作为参数调用接口api_verifyAt,把返回数据放到 rpcData.user.userInfo
+          //"className": "Bearer",
+          /* 验证at接口的地址 */
+          "api_verifyAt": "/AuthCenter/account/verifyAt",
+          /* 验证at接口的httpMethod。(如 GET POST 可不指定) */
+          "api_httpMethod": "POST"
+        },
+
+        {
+          //AccountInCookie 在调用接口前,会获取 rpcData.http.headers.Cookie(格式为 "user=xxx;c=7")中的user,在账号列表中比对userToken,回写 CallerSource(rpcData.caller.source) 和 userInfo(rpcData.user.userInfo)
+          "className": "AccountInCookie",
+          "account": [
+            {
+              "userToken": "admin_123456",
+              "CallerSource": "Internal",
+              "userInfo": {
+                "name": "Gover管理员",
+                "入口": "Gover网关"
+              }
+            }
+          ]
+        }
+      ],
+
+
+      /* 服务限流配置,可不指定 */
+      "rateLimit": [
+        {
+          /* 服务限流key,标识一个限流服务,必须唯一 */
+          "rateLimitKey": "rate",
+
+          /* 固定时间窗口限流。在单位时间(msInterval)内限制最大请求数量为reqLimit。超出数量的请求将被拒绝 */
+          "rateLimitType": "FixedWindow",
+          /* 单位时间内最大请求数量(个)*/
+          "reqLimit": 100000,
+          /* 单位时间长度(单位:ms)*/
+          "msInterval": 1000
+        }
+      ]
+
+    }
+
+
+
+  },
+
+
+
+
+
+  /* Vit工具配置,可不指定 */
+  "Vit": {
+
+    /* 日志配置,可不指定 */
+    "Logger": {
+      /* print the log to console. default:false  */
+      "PrintToConsole": true
+    },
+
+
+    /* 序列化配置,可不指定 */
+    "Serialization": {
+      /* 序列化字符编码。可不指定,默认 UTF8。只可为 UTF7,UTF8,UTF32,ASCII,Unicode。 */
+      "Encoding": "UTF8",
+
+      /* 时间序列化格式。可不指定,默认 "yyyy-MM-dd HH:mm:ss" */
+      "DateTimeFormat": "yyyy-MM-dd HH:mm:ss"
+    },
+
+
+    "Kestrel": {
+      /* the maximum allowed size of any request body in bytes.  When set to null, the maximum request body size is unlimited. */
+      "//MaxRequestBodySize": 100000000
+    }
+
+  }
+
+
+
+
+}

+ 0 - 0
dotnet/Doc/Linux/bash/CGateway.bash → dotnet/Doc/ReleaseFile/bash/CGateway.bash


+ 0 - 0
dotnet/Doc/Linux/bash/Demo.bash → dotnet/Doc/ReleaseFile/bash/Demo.bash


+ 0 - 0
dotnet/Doc/Linux/bash/Gateway.bash → dotnet/Doc/ReleaseFile/bash/Gateway.bash


+ 0 - 0
dotnet/Doc/Linux/bash/Gover.bash → dotnet/Doc/ReleaseFile/bash/Gover.bash


+ 0 - 0
dotnet/Doc/Linux/bash/Robot.bash → dotnet/Doc/ReleaseFile/bash/Robot.bash


+ 0 - 0
dotnet/Doc/Linux/bash/ServiceCenter.bash → dotnet/Doc/ReleaseFile/bash/ServiceCenter.bash


+ 0 - 0
dotnet/Doc/Linux/bash/startall.bash → dotnet/Doc/ReleaseFile/bash/startall.bash


+ 0 - 0
dotnet/Doc/Linux/bash/startup.bash → dotnet/Doc/ReleaseFile/bash/startup.bash


+ 3 - 7
删除发布文件.bat

@@ -1,11 +1,7 @@
 rd /s/q dotnet\Doc\Release\nuget
-
-
-rd /s/q dotnet\Doc\Release\ServiceCenter
-rd /s/q dotnet\Doc\Release\Gover 
-rd /s/q dotnet\Doc\Release\Gateway
-rd /s/q dotnet\Doc\Release\Demo
-rd /s/q dotnet\Doc\Release\Robot
+rd /s/q dotnet\Doc\Release\SersPublish
+rd /s/q dotnet\Doc\Release\CLŃš˛â
+rd /s/q dotnet\Doc\Release\SersľĽĚĺŃš˛â