我select的例子如下:
Basic 64-bit Microsoft Windows Server 2008 (AMI Id: ami-d9e40db0) Microsoft Windows 2008 R1 SP2 Datacenter edition and 64-bit architecture.
我已经安装了Tomcat +应用程序,当我通过IE(在EC2实例中)访问本地IP时,AM能够看到网站。
但是,当我尝试访问它为:
* the assigned Elastic IP * the ec2-999-999-999-999.compute-1.amazonaws.com
从EC2实例本身或从外部,它不起作用。 IE说:Internet Explorer无法显示网页
我试过了:
* disabling the Firewall -> no luck * waiting for a bit -> no luck
我无法ping分配Elastic IP的机器。
允许的连接(如在亚马逊的pipe理控制台中所见)如下:
Connection Method Protocol From Port To Port Source (IP or group) SSH tcp 22 22 0.0.0.0/0 RDP tcp 3389 3389 0.0.0.0/0 DNS tcp 53 53 0.0.0.0/0 DNS udp 53 53 0.0.0.0/0 HTTP tcp 80 80 0.0.0.0/0
我想通了…我没有禁用所有的Windows防火墙!
Windows Server 2008中有3个
域configuration文件
私人资料
公共资料
禁用在每个使它的工作…当然,在生产时我会适当地设置这些…
你不应该禁用你的防火墙。 这会损害您的应用程序和服务器虚拟机的安全性。 而是修改Windows服务器入站防火墙规则,以允许特定端口上的传入stream量。
我遇到了与Windows Server 2012类似的问题。除了正确的安全组设置,您还必须手动修改Windows Server上的防火墙规则。
我已经在这里logging了安全组设置和防火墙规则: http : //abhirampal.com/2015/08/04/firewall-config-for-java-web-app-hosted-on-aws-ec2-windows-2012-服务器/
请注意:您的产品环境的设置可能会比链接上提供的网页更严格。