1.查看端口号是否被占用 netstat -lnp|grep 端口 或 lsof -i :端口 2查看进程对应的端口号 netstat -nap | grep 进程号 转载于:https://www.cnblogs.com/jinjian91/p/11051729.html