# 查看网络端口占用情况 netstat -an | grep 9000 # 通过list open file命令可以查看到当前打开文件,在linux中所有事物都是以文件形式存在,包括网络连接及硬件设备。 lsof -i:9000