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 linux cannot end the process?

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

Share

Shulou(Shulou.com)06/02 Report--

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!

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