After successfully running an ASP. DNX based on Kestrel on a Linux Ubuntu server, there is no way to exit the Web 5 site.
The commands to run are as follows:
/data/git/dnx/artifacts/build/dnx-coreclr-linux-x64/bin/dnx. Kestrel
Started
But after the operation, how can not be returned. Whether you press Enter or press CTRL-C, or press ctrl-z.
Started^c^z
Directly close the Client SSH window, the command is still running, the site can still be accessed normally.
Then log back in with SSH and run the PS all command to discover the process that cannot be exited.
PS allf UID PID time COMMAND4 0 4993 /data/git/dnx/artifacts/build/dnx-coreclr-linux-x64
So kill this process:
Kill 4993
But after kill, the process is still running.
Later on the internet found the Ultimate method--kill-9:
Kill-9 4993
The problem was solved by this method.
Note: This issue of Kestrel has been fixed in mono-based DNX, Coreclor-based DNX is not yet fixed, see Terminal window hangs on Linux after starting Kestrel ser Ver #108.
The ultimate way to force an end to a process in Linux