Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem that linux cannot end the process?

Shulou Source: shulou.com Published: 2022-06-02 21:51:05 09月22日 Update

How can linux not finish the process? I believe that many inexperienced people are helpless about this. For this reason, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

When killing a process, just kill it, and change a process id to continue running, try many methods to know that the process has a parent process, want to end it, you must first end its parent process.

The most common method is to use ps aux, then filter through the pipeline using grep to find specific processes, and then operate on specific processes. For example ps aux| grep nginx

termination process

Use the kill command kill xxx

Common use: kill -9 xx

There is also a killall command that uses the process name instead of the process ID number, such as killall -9 name

The Unkillable Process

Find the parent process first, end the parent process

ps -ef| grep process id (find parent process)

then

kill -9 parent process id (end parent process)

After reading all this, do you know how to fix linux's inability to terminate processes? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!

Tags: Process method command content commonly used more problem helpless for this reason name this skill time logo identification number pipeline article experience industry Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Technology Docker Xiaomi MySQL