linux 列出所有端口 netstat -a | grep xxxx

列出所有用户的进程 ps aux | grep xxxx

windows 列出所有端口 netstat -ano | findstr xxxx