参考链接1)查看当前所有已经使用的端口情况,不需要加端口号 netstat -nultp2)查看选定端口号的使用情况,如8080 netstat -anp|grep 80803)同上,查看选定端口号的使用情况,如8080 lsof -i:8080