linux下如何查找被占用的端口号&删除相关进程

libowenhit 2012-07-04

lsof-i:10000查看:10000端口号被占用

显示结果如下:

COMMAND     PID    USER   FD   TYPE   DEVICE SIZE NODE NAME
weblogic  1111    root   60u  IPv4 26643774       TCP 192.168.0.1:1123->192.168.0.1:10000 (ESTABLISHED)
java      1112   admin  245u  IPv6 26623812       TCP *:10000 (LISTEN)
java      1113   admin  252u  IPv6 26643775       TCP 192.168.0.1:10000->192.168.0.1:1123 (ESTABLISHED)

根据进程号强制删进程:

kill-91111

相关推荐