1
回答
localhost 指向外网!
百度AI开发者大赛带你边学边开发,赢100万奖金,加群:418589053   

事情的起因是这样的

运行环境:
mac + jdk8+ eclipse mar

整个问题发现流程

1.我想debug一个工程

2.发现以下的错误

ERROR: transport error 202: gethostbyname: unknown 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:750]

FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)

3.ping localhost

PING localhost (183.207.232.253): 56 data bytes
64 bytes from 183.207.232.253: icmp_seq=0 ttl=57 time=19.607 ms
64 bytes from 183.207.232.253: icmp_seq=1 ttl=57 time=26.369 ms

4.出现第三步的问题,我猜测是和localhost有关系


ps:附上hosts文件啊

1 ##
  2 # Host Database
  3 #
  4 # localhost is used to configure the loopback interface
  5 # when the system is booting.  Do not change this entry.
  6 ##
  7 127.0.0.1   localhost
  8 #127.0.0.1   promote.cache-dns.local
  9 255.255.255.255 broadcasthost
 10 #::1             localhost
~



<无标签>
举报
那年20
发帖于3年前 1回/265阅

以下是问题补充:

顶部