简体   繁体   English

升级Amazon EC2实例

[英]upgrade amazon ec2 instance

I am wanting to upgrade my t2.micro EC2 windows server. 我想升级我的t2.micro EC2 Windows服务器。 I have read the amazon resize link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html and it asks to "stop" my server. 我已经阅读了亚马逊调整大小链接http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-resize.html ,它要求“停止”我的服务器。 My server is EBS and when i try to stop I get a wrning that says "all ephemeral storage will be deleted". 我的服务器是EBS,当我尝试停止时,出现一条消息,提示“所有临时存储都将被删除”。 Will my WAMP setup (apache, mysql database, PHP) running on C:\\ and all database be lost? 在C:\\上运行的WAMP设置(Apache,MySQL数据库,PHP)会丢失吗? How do i make sure it isn't? 我如何确定不是呢?

t2.micro does not have any ephemeral (instance) storage available with it. t2.micro没有可用的临时(实例)存储。 You must have explicitly associated an EBS volume with the instance. 您必须已将EBS卷与实例明确关联。 You can stop the instance - data won't be lost. 您可以停止实例-数据不会丢失。

You can safely upgrade your t2.micro instance from AWS Dashboard. 您可以从AWS Dashboard安全地升级t2.micro实例。

Simply perform the following steps: 只需执行以下步骤:

  1. stop the instance (since t2.micro is EBS-backed by default, no data will be lost) 停止实例(由于默认情况下t2.micro由EBS支持,因此不会丢失任何数据)
  2. when the instance is stopped, right-click and select "change instancy type" from dropdown menu. 实例停止后,右键单击并从下拉菜单中选择“更改即时类型”。
  3. start the image once the instance type is successfully changed 成功更改实例类型后,启动映像

You can do it by: 您可以通过以下方式实现:

Without Stopping Instance: 不停止实例:

Create a Snapshot of your Volume. 创建卷的快照。 Create Image from Snapshot. 从快照创建图像。 Launch Instance from the AMI and with your desired Instance Type. 使用所需的实例类型从AMI启动实例。

It will save all your Configuration and Data. 它将保存您的所有配置和数据。

With Stopping Instance: As you have mentioned all your data is on EBS. 使用停止实例:如前所述,所有数据都在EBS上。 Stop the Instance. 停止实例。 Create an Image of the Instance. 创建实例的映像。 Launch Instance from the AMI and with your desired Instance Type. 使用所需的实例类型从AMI启动实例。

It will save all your Configuration and Data. 它将保存您的所有配置和数据。

Hope It Helps.. :) 希望能帮助到你.. :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM