查看端口有没有被占用 linux netstat -tunpl | grep 8080 如果查到有记录,表示此端口存在 window netstat -ano | findstr 8080 如果查到有记录,表示此端口存在