我发现这篇文章和我的一样,但没有找到解决方案。所以当我这样做时,我会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本身。但是当我部署我的应用程序时,这就是发生的事情。