Tomcat报错:ERROR:transport error 202: gethostbyname: unknown host
错误信息大概这种感觉
ERROR:transport error 202: gethostbyname: unknown host
A configuration error occurred during startup. Please verify the preference field with the prompt: 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:690]
找到“系统盘:\Windows\System32\drivers\etc”下面的host或者hosts(Linux)文件,加一句
127.0.0.1 localhost
或者
127.0.0.1 localhost.localdomain localhost (Linux)
改了以后的确好了,但之后我无聊又给改回去了,仍然没有问题……
不过如果出现过这个问题建议就不要改回来了……你改一次它记住了,但过段时间就又忘了的……然后还得再来一次……