What to do if the Linux process cannot be killed

藏色散人
Release: 2019-11-13 09:29:05
Original
7407 people have browsed it

What to do if the Linux process cannot be killed

#What should I do if the Linux process cannot be killed?

In liunx, sometimes the command ps -ef|grep process name is used to check the process pid number. When killing the process, the process cannot be killed because the child process may be killed instead of the parent process. The entire The process tree is not dead. In response to this situation, I struggled to find an order to solve this problem.

The method to view the pid of the process tree is:

ps -A|grep -i 进程名
Copy after login

Then the command to kill the process is:

kill 进程pid号 
Copy after login

or use the command:

kill -9 进程pid号
Copy after login

ps to kill Dead process, the command to kill the process according to the process name:

pkill 进程名
Copy after login

Recommended: "Linux Tutorial"

The above is the detailed content of What to do if the Linux process cannot be killed. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!