Jetty (mis)configuration: it wont respond from an external machine… why?

余生长醉 提交于 2020-01-15 06:51:49

问题


I installed jetty on an ubuntu 11 machine by

sudo apt-get install jetty

afterwards I configured the context, the war file and the NO_START variable. All works OK when I test it on the same machine, e.g.

curl http://localhost:8080/

However, when I try to connect from an external machine, it just doesn't answer. I tried this both on a virtual machine on a Win 7 host, and on Amazon EC2.

thanks,


回答1:


Make sure this is not an firewall issue. Maybe 8080 port is closed by firewall.

Also try add line into file /etc/default/jetty :

JETTY_HOST=0.0.0.0

See similar question




回答2:


In EC2 realm, the default open port is usually 80. You need to go to your EC2 console, see the SecurityGroup associated with the machine, and add the port 8080 open for whole word i.e. 0.0.0.0/0. And you should be all set.



来源:https://stackoverflow.com/questions/9374195/jetty-misconfiguration-it-wont-respond-from-an-external-machine-why

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!