使用 Amazon VPC 内的外部服务器
我有一个在我这边托管和管理的外部服务器。我使用另一台服务器,它基于 Amazon EC2。我想让他们使用 Amazon VPC(虚拟私有云)协同工作。
这可能吗?如果可以的话,该怎么办呢?
I have an external server hosted and managed on my side. There's another server I use, which is based on Amazon EC2. I would like to get them to work together using Amazon VPC (Virtual Private Cloud).
Is that possible? If so, how can it be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您打算将 EC2 实例迁移到 VPC,那么不可以。您将需要在 VPC 内创建一个新实例并复制设置和数据。实现此目的的最快方法是从当前的 EC2 实例创建 AMI 并将其部署为 VPC 内的新实例。
此外,如果您的 VPC 实例部署在私有子网中,您将必须部署公有 NAT 实例、配置 NAT 实例 DST-NAT 规则以将外部端口映射到您的应用程序实例、正确设置 VPC 路由表并调整安全性组以允许转发流量。
现在,关于外部服务器,如果您要将其迁移到 VPC,我建议您直接使用预构建的标准 Amazon AMI 创建一个新实例,然后手动复制配置和数据。有一些虚拟机迁移工具,但我对这些工具的使用体验并不友好所以...
If you intend to migrate your EC2 instance to a VPC, then no, you can not. You will require to create a new instance inside your VPC and replicate the setup and data. The fastest way to accomplish this is creating an AMI from your current EC2 instance and deploy it as a new instance inside VPC.
Furthermore, if your VPC instance is deployed in a private subnet, you will have to deploy a public NAT instance, configure the NAT instance DST-NAT rules to map external ports to your app instance, setup the VPC routing tables properly and adjust the security groups in order to allow forwarding traffic.
Now, about the external server, if you are going to migrate it to VPC, I would recommend you to directly create a new instance with a prebuilt standard Amazon AMI and then manully replicate configuration and data. There are some VM migration tools but my experience with such tools has not been friendly so...