Utilization Net development server application management tool

Time:2022-6-10

1、 Background

1、Anno.Deploy

Anno.DeployCan andAnnoIntegrated use, used to deploy new services, start services, stop services, and clean services. It can also be used alone for daemons.

2、 Method of use

1. Integrated with anno

2. Use alone

Annodeploy status view program status
Annodeploy start [workingname] start program
Annodeploy stop [workingname] stop program

Annodeploy status view program status


HelloWorldService21                 UP        pid 24864   admin
HelloWorldService22                 DOWN      pid -1      admin 
  

Annodeploy start [workingname] start program

[17:44:15:6832]: helloworldservice21 started!
                    HelloWorldService21                 UP        pid 14744   admin

Annodeploy stop [workingname] stop program

[17:45:24:2212]: helloworldservice21 has stopped!
                    HelloWorldService21                 DOWN      pid -1      admin

3. Annodeploy profile

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <!-- 0,0 the first bit is workstation, the second bit is data center
  (the two digits of all annoservices cannot be repeated. For example, there cannot be [1,2] [1,2])
  There can be [1,2] [2,1]
  -->
  <IdWorker>0,1</IdWorker>
  <!-- App name -- >
  <AppName>Anno.Deploy</AppName>
  <!-- Listening port -- >
  <Port>7999</Port>
  <!-- Weight -- >
  <Weight>1</Weight>
  <!-- Function not anno Plugs adding method -->
  <FuncName></FuncName>
  <!-- Ignored features trace, logic-->
  <IgnoreFuncName></IgnoreFuncName>
  <!-- Timeout milliseconds -- >
  <TimeOut>300000</TimeOut>
  <!-- Target registered to -- >
  <Ts Ip="127.0.0.1" Port="7010"/>
  <IocDll>
 
  </IocDll>
  <appSettings>
    <!--  Directory of program placement -- >
    <add key="work_directory" value="E:\AnnoDeployStorage"/>
    <!--  Password for integrated use with Anno -->
    <add key="deploySecret" value="duyanming"/>
  </appSettings>
</configuration>

4. Annodeploy configure a daemon

This step is not required if the program is deployed through the online panel

Found under working directoryproc Folder. Each file below represents a new file created by a program HelloWorldService21 Content:

{
    "Running":true,
    "AutoStart":"1",
    "AnnoProcessDescription":"admin",
    "ReStartErrorCount":0,
    "Id":24628,
    "WorkingDirectory":"HelloWorldService21",
    "Cmd":"dotnet HelloWorldService.dll -p 7029",
    "NodeName":"Anno.Deploy"
}
  
"Running": true. // whether the program is running. The initial configuration is set to false
"Autostart": "1", // whether to start automatically
"Annoprocessdescription": "admin", // program description
"Restarterrorcount": 0, // the number of restart failures is set to 0 in the initial configuration
"Id": -1, // the initial configuration of the program process ID is set to -1
"Workingdirectory": "helloworldservice21", // program name (the program needs to be placed in the work_directory directory. The name is helloworldservice21. The configuration file name is consistent with the program folder name)
"CMD": "dotnet helloworldservice.dll -p 7029", // start the command
"NodeName": "anno.deploy" //annodeploy's name

This article is about utilization Net development server application management tools, more related Net development server application management tool content please search the previous articles of developeppaer or continue to browse the related articles below. I hope you will support developeppaer in the future!