您可以通过执行 netstat -tunlp,netstat -antup,lsof -i:PORT 命令进行查看。
netstat -tunlp
netstat -antup
lsof -i:PORT