我已经找到了像我这样的this帖子,但没有找到解决方案。因此,当我执行netstat -n时,我会得到以下结果:
TCP 127.0.0.1:52144 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52145 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52146 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52147 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52148 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52149 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52150 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52151 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52152 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52153 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52154 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52155 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52156 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52157 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52158 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52159 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52160 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52161 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52162 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52163 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52164 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52165 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52166 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52167 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52168 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52169 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52170 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52171 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52172 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52173 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52174 127.0.0.1:8080 TIME_WAIT
TCP 127.0.0.1:52175 127.0.0.1:8080 TIME_WAIT
...还有更多。当我执行ping localhost:8080时,我会得到:Ping request could not find host localhost:8080. Please check the name and try again.
当我使用ping localhost时,我得到的是:
Pinging TA52273.com [::1] with 32 bytes of data:
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Reply from ::1: time<1ms
Ping statistics for ::1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms当我在FF上尝试localhost:8080时,我得到的是空白页面,只是空白页面。当我在chrome上尝试localhost:8080时,我得到的是:Oops! This link appears to be broken. Did you mean: localhost8080.net
localhost:8080没有响应。
任何想法,可能出了什么问题。我可以毫不费力地启动tomcat本身。但当我部署我的应用程序时,这就是发生的事情。
发布于 2013-06-26 04:02:46
至于TIME_WAITs,我不会担心它。有关更多信息,请查看this article。
至于ping,这是不正确的:
ping localhost:8080虽然这是正确的:
ping localhost即,在执行ping时不指定端口。
例如,使用nc、wget或telnet来验证该端口是否有什么东西在侦听( HTTP)。
现在来谈谈你的webapp的问题,你的WAR叫什么,你在哪里部署了它?如果它是doh.war,并且您已经在$CATALINA_BASE/webapps中部署了它,那么您应该将您的浏览器指向
http://127.0.0.1:8080/doh假设Tomcat正在监听本地主机上的8080。
发布于 2015-03-17 05:44:32
在我的例子中,有很多进程转到TCP端口111。‘'chkconfig | grep nscd’显示NIS缓存未运行。我启用了nscd,问题就解决了。
chkconfig nscd on发布于 2016-09-15 16:53:52
只需ping该端口并再次检查网络统计信息,该行将不再显示为time_wait
https://stackoverflow.com/questions/17303389
复制相似问题