今天把tomcat关闭后,过一会再启动。就一直启动不了了。一启动就报如下错误:
ERROR:transport error 202: gethostbyname: unknown host
2 A configuration error occurred during startup. Please verify the preference field with the prompt: ERROR: transport error 202: gethostbyname: unknown host
3 ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
4 JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
最后在C:\Windows\System32\drivers\etc目录下的hosts文件(用文本打开)就会看到如下这段话:
# 127.0.0.1 localhost
将#删除即可。
============================
保存完后再次启动tomcat就可以了。 但是我再次把#号加上也没有问题,难道是tomcat的一个bug??
from:http://blog.csdn.net/zl544434558/article/details/22807563