【问题标题】:How to Acces Amazon Server through Public Dns如何通过公共 DNS 访问亚马逊服务器
【发布时间】:2015-02-24 21:15:43
【问题描述】:

我是亚马逊网络服务器的新手。在我的 Windows 实例上,我安装了 apache 网络服务器。在浏览器中使用 localhost 时,它会显示页面 “它可以工作”,但我无法从公共 DNS 获取此页面。 ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com

【问题讨论】:

    标签: apache amazon-web-services amazon-ec2


    【解决方案1】:

    你需要打开防火墙:

    1. create a security group, such as `IIS-web-group`
    
    2. set inbound ports
    
    Type    Protocol    Port Range    Source
    HTTP    TCP         80            0.0.0.0/0
    
    3. assign this security group to that ec2 instance.
    

    然后从您的客户端(例如您的计算机)进行 telnet 测试

    telnet ec2-XX-XX-XX-XX.us-west-1.compute.amazonaws.com 80
    

    如果您可以远程登录,那么您现在应该可以访问该网站了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-10-05
      • 2014-08-21
      • 1970-01-01
      • 2016-01-06
      • 1970-01-01
      • 2013-07-11
      • 1970-01-01
      • 2014-07-22
      相关资源
      最近更新 更多