例如查看389端口被什么进程使用:
用root登陆输入: netstat -Aan | grep -i listen | grep 389
输出为:
f10000f300ce4358 tcp 0 0 *.389 *.* LISTEN
输入:rmsock f10000f300ce4358 tcpcb
输出为:The socket 0xce4000 is being held by proccess 299070 (ibmslapd).
显示使用389的端口为ibmslapd进程
例如查看389端口被什么进程使用:
用root登陆输入: netstat -Aan | grep -i listen | grep 389
输出为:
f10000f300ce4358 tcp 0 0 *.389 *.* LISTEN
输入:rmsock f10000f300ce4358 tcpcb
输出为:The socket 0xce4000 is being held by proccess 299070 (ibmslapd).
显示使用389的端口为ibmslapd进程