How to start asp.net main server on Linux and save it
I created a basic ASP.Net Core server on an Azure Ubuntu VM. I exposed the server to port 80 using nginx. I am connecting to VM via ssh. And start the server using the "dotnet run" command. This works great.
However, every time I close the ssh connection, the server stops as well. Is there a way to get my main asp.net server up and running on Linux without an active ssh connection?
+3
source to share
1 answer
Basically the following happens:
- You login with ssh
- you run the application as your user (
dotnet run
) - Close user ssh => which means the application is closed.
You need to start the service outside of your user. Here's some information:
Otherwise, I would suggest you ask https://askubuntu.com/
+1
source to share