刚想DEBUG,而且是本地DEBUG,出来这么个错:
ERROR: transport error 202: connect failed: No route to host
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
查看HOSTS 文件
#192.168.0.137 localhost localhost.localdomain
192.168.1.102 localhost localhost.localdomain
查看IP,发现地址变成104了,把HOSTS 文件也改成104就可以了