janwen

aws ec2 内网怎么互相访问?

  •  
  •   janwen · May 3, 2014 · 12070 views
    This topic created in 4579 days ago, the information mentioned may be changed or developed.
    2个ec2免费实例,一台web server一台mongodb,web server怎么用private ip来访问mongodb啊?不要告诉我用神马VPC,看了半天头都大了。
    11 replies  •  2016-03-10 14:37:23 +08:00
    cevincheung
    cevincheung
    May 3, 2014
    1
    内网ip能ping通吗首先?
    janwen
    janwen
    OP
    May 3, 2014
    2
    janwen
    janwen
    OP
    May 3, 2014
    3
    @cevincheung 通过dns,ip都不能ping通
    cevincheung
    cevincheung
    May 3, 2014
    4
    @janwen 看看Security Groups设置,还不行就通过设置Router试试。
    wdlth
    wdlth
    May 3, 2014
    5
    VPC貌似是对外用的,放宽网络安全访问的规则试试。
    solf
    solf
    May 3, 2014
    6
    security groups里面将各自的security group加进去,访问用aws提供的dns不要用elastic ip
    yangxin0
    yangxin0
    May 3, 2014
    7
    在安全策略里面把相应端口打开就好了。
    janwen
    janwen
    OP
    May 4, 2014
    8
    @cevincheung security group开放了所有ip,所有端口
    janwen
    janwen
    OP
    May 4, 2014
    9
    大家可能没有理解我的意思,这2个实例都是免费的,也就是说这2个实例在不同账号下注册的。不是同一个账号2个实例
    cevincheung
    cevincheung
    May 4, 2014
    10
    @janwen 无法访问,非同一router。相互隔绝的。
    DotKu
    DotKu
    Mar 10, 2016
    11
    @janwen 很聪明的办法!那么可以通过内网来互通数据了?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4720 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 01:25 · PVG 09:25 · LAX 17:25 · JFK 20:25
    ♥ Do have faith in what you're doing.