Linux query process PS or kill process kill the tips

Source: Internet
Author: User

Let's say we're going to kill Tomcat:

So we first need Tomcat's process number PID:

Ps-aux | grep Tomcat

After writing down Tomcat's PID, execute: Kill PID (Tomcat)

All right, here we go.

Passers-by: the little ones, the guy who cheated people's feelings!

Me: Cough! Everybody calm and calm, I this will give everyone to add vegetables ...

—————————————————————————————————————————————————

Study is not to become lazy, that and salted fish have what difference!

Ps-aux | grep Flume after the situation presumably everyone has the impulse to beat people: drawings

Now please kill the process associated with Flume:

Kill 22042

Kill 35564

Kill 64608

...

Passers-by: brothers, beat him!

The eating melon people who are ignorant of the truth: OK!

Me: Everybody calm down, the food is coming!

—————————————————————————————————————————————————

To avoid a kill, we need to extract the flume process number:

Ps-aux | grep Flume | awk ' {print $} '

It's clear now!

But is the process number, or do you want to kill the PID of the implementation of the strips?

In fact, this statement adds a little bit to it.

Ps-aux | grep Flume | awk ' {print $} ' | Xargs Kill

It is so simple, do not say, ready to run, flicker failure ...

Eat melon masses: So simple a sentence you said so much ....

In the run of me: Everyone, next time you pass tea!!!

Linux query process PS or kill process kill the tips

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.