简体   繁体   English

Jetty Server 启动但无法在浏览器上访问

[英]Jetty Server started but can't access it on browser

I tried to run a Java web application using Jetty Server.我尝试使用 Jetty Server 运行 Java Web 应用程序。 The Jetty Server is running as shown on the cmd, but while I tried to access localhost:10000 via browser (Chrome, IE or Mozilla Firefox), the browser always ends up on googles the address ( Oops! Google Chrome could not connect to localhost:10000 ). Jetty 服务器正在运行,如 cmd 所示,但是当我尝试通过浏览器(Chrome、IE 或 Mozilla Firefox)访问localhost:10000 ,浏览器总是以 googles 地址结束( Oops! Google Chrome could not connect to localhost:10000 )。

The tutorial is based on this link.本教程基于链接。 I also tried to setting the proxy server by adding 127.0.0.1 and localhost on the exceptions, but still the same.我还尝试通过在异常上添加127.0.0.1localhost来设置代理服务器,但仍然相同。 What's wrong?怎么了? Thanks.谢谢。

在此处输入图片说明

That is because the you should go to port 8080那是因为你应该去端口 8080

http://localhost:8080

It says so in the screen shot, Started ... @0.0.0.0:8080它在屏幕截图中这么说,开始...... @0.0.0.0:8080

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM