【问题标题】:How to install Nginx in a aws ec2 instance which is hosted on a private subnet如何在私有子网上托管的 aws ec2 实例中安装 Nginx
【发布时间】:2021-10-20 13:03:30
【问题描述】:

我正在尝试在私有子网中启动的 aws ec2 实例上启动 nginx。安装完所有东西(我的意思是 nginx)后,我也无法使用 curl 命令访问它。我在谷歌上搜索了很多,但没有找到任何解决方案。

【问题讨论】:

    标签: amazon-web-services nginx devops white-labelling


    【解决方案1】:

    您好,由于您已安装在私有子网 ec2 中,因此无法使用 curl 访问。 现在有以下解决方案

    1. 在 ec2 前使用公共负载均衡器
    2. 使用会话管理器 (https://aws.amazon.com/premiumsupport/knowledge-center/systems-manager-ssh-vpc-resources/)

    【讨论】:

      猜你喜欢
      • 2019-09-04
      • 2021-11-18
      • 2019-01-08
      • 1970-01-01
      • 2020-01-23
      • 2020-09-07
      • 2016-11-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多