The ultimate way to force an end to a process in Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.