aix用命令查监听端口对应的进程

--aix
$netstat -an|grep LISTEN|grep 7867
tcp4 0 0 *.7867 *.* LISTEN
$netstat -Aan|grep 7867
f1000e00029fe3b0 tcp4 0 0 *.7867 *.* LISTEN
$rmsock f1000e00029fe3b0 tcpcb
The socket 0x29fe008 is being held by proccess 2884424 (test).
$ps -ef|grep 2884424
admin 4128816 2491030 0 16:14:42 pts/6 0:00 grep 2884424
admin 2884424 2884008 0 15:31:15 pts/3 0:00 test
$

--linux

# netstat -apn|grep LISTEN|grep 4000
tcp 0 0 :::4000 :::* LISTEN 21864/node

原文地址:https://www.cnblogs.com/book-gary/p/5127639.html