This article is a mirror article of machine translation, please click here to jump to the original article.

View: 43924|Reply: 2

[ASP.NET] ASP.NET Core is deployed as a Windows service

[Copy link]
Posted on 6/6/2021 4:13:47 PM | | | |
With the cross-platform support of .NET Core, web projects do not need to be hosted on IIS containers, applications can be self-hosted, ASP.NET Core can enable HTTP services through Kestrel containers to receive HTTP requests, how to deploy ASP.NET Core as a Windows service?

Review:

Deploy applications as Windows services through NSSM
https://www.itsvse.com/thread-9551-1-1.html

A service based on .NET Core on Linux
https://www.itsvse.com/thread-9447-1-1.html

We need to install a nuget package in the project with the following command:


Modify the program code as follows:

Publish the project with the following configuration:



Open the cmd program as an administrator and run the following command:
Note the format here, "=" must be followed by a blank, otherwise an error will occur.



(End)




Previous:ASP.NET add a global anomaly filter to MVC
Next:Nginx checks the connection through a web browser
Posted on 9/22/2021 8:56:39 PM |
Learn to learn...
Posted on 10/19/2021 10:54:08 AM |
Learn to learn...
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com