Disconnected from the target VM, address: '127.0.0.1:53688', transport: 'socket'
Emmm,这就是正常执行完测试类关闭了而已
大多数情况都是端口被占用了,可以找到端口被占用的程序,杀掉进程
cmd进入命令行窗口
netstat -ano | findstr 53688
找到进程id
然后打开任务管理器 找到对应进程id 手动杀掉就可以了
Disconnected from the target VM, address: '127.0.0.1:56577', transport: 'socket'
Disconnected from the target VM=与目标虚拟机断开连接。
PS:通俗点讲就是:你的端口已经被其他程序占用,无法连接目标虚拟机。
在cmd中输入命令:netstat -ano,查看所有端口的占用情况