linux查看端口号,并杀掉进程

[wb@server bin]$ netstat -nltp|grep 7001

(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
tcp        0      0 ::ffff:127.0.0.1:7001       :::*                        LISTEN      1420/java        
[wb@server bin]$ kill -9 1420

猜你喜欢

转载自xueqi.iteye.com/blog/1796757