查看端口号

netstat -anp | grep 端口号

查询后状态为  LISTEN 表示端口被占用

查看当前机器 listen 的所有端口

netstat -tlnp

原文地址:https://www.cnblogs.com/junhao86/p/15119414.html