Linux Can';t访问ec2实例开发服务器上的django网站
下面是我如何尝试运行我的开发服务器(我尝试过使用sudo和不使用sudo,只是为了确保): 以下是我的iptables列表:Linux Can';t访问ec2实例开发服务器上的django网站,linux,django,ubuntu,amazon-ec2,Linux,Django,Ubuntu,Amazon Ec2,下面是我如何尝试运行我的开发服务器(我尝试过使用sudo和不使用sudo,只是为了确保): 以下是我的iptables列表: Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:8000 Chain FORWARD (policy
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:8000
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere state ESTABLISHED
下面是我如何在浏览器中调用它的:ec2-###-#-#-#-##-#.compute-1.amazonaws.com:8000/
知道怎么回事吗?我正在使用一个Ubuntu微实例 EC2使用一个名为安全组的防火墙系统,该系统存在于实例外部。安全组中的端口需要打开才能从外部访问它们。您可以通过API或EC2控制台更改规则。您的安全组中是否打开了端口8000?错误,我如何检查?我认为在iptables中打开它意味着为所有人打开它。Ec2有一个防火墙系统,存在于实例之外。您可以通过api或ec2 console.Gotcha更改规则。我不拥有该实例,但我会让拥有该实例的人打开该端口。如果这行得通,我很乐意投你一票。
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:8000
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere state ESTABLISHED