如何访问/ping 位于 AWS 上的服务器? [英] How to access/ping a server located on AWS?

查看:24
本文介绍了如何访问/ping 位于 AWS 上的服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

应该使用什么地址访问位于 AWS 上的服务器?

With what address should a server located on AWS be accessed?

我已经创建了一个 AWS 实例并在其上安装了一个 Web 服务器.但是,无法通过以下任何方式访问服务器:

I've created an AWS instance and installed a web server on it. However the server is not reachable via any of the:

  1. ec2-174-129-24-92.compute-1.amazonaws.com
  2. 来自实例的 ifconfig
  3. 的 IP 地址
  4. 我在 AWS 仪表板上创建并与实例关联的弹性 IP 地址

令人惊讶的是,使用 root@ec2-174-129-24-92.compute-1.amazonaws.com 的 ssh 工作正常.

Surprisingly, ssh with root@ec2-174-129-24-92.compute-1.amazonaws.com works fine.

可能是什么问题以及如何将地址绑定到实例?

What might be the problem and how to bind an address to the instance?

推荐答案

在您的安全组中,在 ICMP 上打开 -1 到 -1,范围为 0.0.0.0/0,您将能够 ping.

In your security group open -1 to -1 on ICMP for range 0.0.0.0/0 and you'll be able to ping.

查看我的屏幕截图以获得更好的视图:

See my screenshot for a better view:

下面@emostar 发布的图片

Image posted by @emostar below

这篇关于如何访问/ping 位于 AWS 上的服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆