netstat -an | grep 9000 #可查看端口是否占有 sudo lsof -i :9000 #可查看端口占有进程 注:linux服务器,可直接使用netstat -anp | grep 9000完成