Tomcat6 启动时 Cannot assign requested address: JVM_Bind
工作正常的tomcat6在一次安装更新重启电脑后,报告如下错误:
根据以往的经验。认为是端口冲突,使用tasklist | findstr "8080"查看没有查看到端口被占用的情况。经过种种折腾也不奏效,搜索到篇文章。里面说到除了端口占用引起的问题,还可能是IP绑定的问题。结果在C:\Windows\System32\drivers\etc配置文件中发现类似的配置
//输出localhost映射的所有IP地址 InetAddress[] ips = InetAddress.getAllByName("localhost"); if (ips != null) { for (InetAddress ip : ips) { System.out.println(ip.getHostAddress()); } }
相关推荐
AderStep 2020-11-09
BraveWangDev 2020-08-19
Wytheme 2020-06-11
thundor 2020-05-05
wvfeng 2020-04-16
jmdvirus 2013-07-22
thlm0 2019-12-23
sunln00 2019-12-20
小网管 2015-01-22
YFCEMBEDD 2019-11-09
RayDon 2015-05-20
godwot 2019-09-17
ljz0 2018-10-09
ftafta 2011-08-05
ftafta 2011-05-13
thone00 2011-10-31
thone00 2010-05-26