Under windwos nssm hosting dotnet core applications

Download nssm, unzip into the directory nssm.exe, open PowerShell in the directory. We

 nssm install <SerivceName>

 Command to create the service, the pop-up window installation service after executing the command, as shown below:

 

 

Path the Application : DOTNET directory

Directroy the Startup : publishing catalog file is located;

The Arguments : xxx.dll file name after the release of the project.

  Click the button to create a service, and very simple to use, open Services Manager, you can see that the service has been installed successfully

Start the service

Guess you like

Origin www.cnblogs.com/jiamiemie/p/11830822.html