[CentOS] netstat - kill by pid ?
m.roth at 5-cent.us
m.roth at 5-cent.usTue Sep 28 17:33:36 UTC 2010
- Previous message: [CentOS] netstat - kill by pid ?
- Next message: [CentOS] netstat - kill by pid ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Silviu Hutanu wrote:
> Hi ,
>
> You can use this:
>
> kill -9 `netstat -antp|grep 8080|grep java|awk '{ print $7 }'|cut -d'/' -f
> 1`
>
> But if had to do the same thing I would search in the running processes
> instead using netstat, anyway you can extract the pid in the same way.
>
Yeah, but don't forget you may have shared memory, etc, left laying
around. Those need to be cleaned out as well.
mark
- Previous message: [CentOS] netstat - kill by pid ?
- Next message: [CentOS] netstat - kill by pid ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list