tomcat启动总是出现Cannot assign requested address: JVM_Bind异常

解决方法:

将计算机的C:\Windows\System32\drivers\etc\hosts文件中发现如下部分内容:

# localhost name resolution is handled within DNS itself.
     127.0.0.1               localhost
     xx.xx.xx.xx      localhost

 

xx.xx.xx.xx 是一个不存在的本地IP地址,将hosts文件中的第二行内容xx.xx.xx.xx  localhost去掉后,再次启动TOMCAT,成功运行

相关文章: