Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux Can';t访问ec2实例开发服务器上的django网站_Linux_Django_Ubuntu_Amazon Ec2 - Fatal编程技术网

Linux Can';t访问ec2实例开发服务器上的django网站

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

下面是我如何尝试运行我的开发服务器(我尝试过使用sudo和不使用sudo,只是为了确保):

以下是我的iptables列表:

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