Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that the kill command in linux can't kill the process?

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains how to solve the problem that the kill command in linux can't kill the process. Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn how to solve the problem that the kill command in linux can't kill the process.

Solution: 1, enter the "/ proc/ process number" directory, execute the "cat status" command to query the specified process's parent process; 2, use the "kill-9 parent process process number" to delete the parent process; 3, use the "kill process number" to delete the specified process.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What if the kill command in linux can't kill the process?

There are two reasons why it can't be killed: 1. This process is zombie process 2. This process is a "nuclear mentality" process.

Solution:

1. Go to the directory "/ proc/ process number"

Execute the "cat status" command to query the parent process of the specified process

2. Delete the parent process by using the process number of the kill-9 parent process

3. Use "kill process number" to delete the specified process again.

At this point, I believe that everyone has a deeper understanding of "how to solve the problem that the kill command in linux can not kill the process". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report