DOTNET Core package to the Windows Service project

OE, and Software

DOTNET Core versions
of software: NSSM Download , download, unzip, pay attention not to install!
Here my project called: NSSMTest
release package called: NSSMTests


Create and publish a dotnet project, I will not say


DOTNET Core package to the Windows Service project

We came NSSM.EXE folder

Address bar, type cmd, and as an administrator start the console (input command cmd -admin ), or not set, the administrator starts please Baidu


Start NSSM

cmd input nssm install

Package to service

Path: dotnet.exe directory, by default C: \ Program Files \ DOTNET
the Startup Directory: program directory, that is, that NSSMTest.dll our project where the entire directory, by default in the package itself

Arguments: .dll program name, is our NSSMTest.dll
Service name: name

Configuration Service Success



Start Service

We find the Windows Service Manager to start the service name of our project is complete

Run Service

We can enter localhost: 5000 to access our project

after the packaging to the service if you want to have a new project, you need to disable the service before the ban


We can also use a reverse proxy in this way IIS

Guess you like

Origin www.cnblogs.com/wxxmy/p/11774041.html