Cannot assign requested address: JVM_Bind

来源:互联网 发布:centos yum 源更新 编辑:程序博客网 时间:2024/05/26 07:27

这几天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,发现运行正常!


0 0
原创粉丝点击