如果你碰到java.net.BindException: Address already in use, 那么你可以使用这个命令来判断是否有进程正在使用你需要使用的那个端口, 比如80, 8080等. netstat -pant | grep 80