Jetty (mis)configuration: it wont respond from an

2019-07-20 04:03发布

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,

2条回答
一夜七次
2楼-- · 2019-07-20 04:31

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.

查看更多
手持菜刀,她持情操
3楼-- · 2019-07-20 04:35

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

查看更多
登录 后发表回答