All Products
Search
Document Center

Elastic Compute Service:Restart an ECS instance

Last Updated:Mar 28, 2024

You may need to restart Elastic Compute Service (ECS) instances, usually for maintenance purposes, such as to apply system updates or to save and apply configurations. This topic describes how to restart an instance in the ECS console or by calling an API operation.

Warning

The restart operation stops the instance for a short period of time and may interrupt services that are running on the instance. We recommend that you restart instances during off-peak hours.

Prerequisites

The instances that you want to restart are in the Running state.

Restart an instance

We recommend that you restart an instance in the ECS console or calling an API operation instead of running the reboot command in the operating system of the instance. In specific scenarios, such as offline resizing, hostname modification, and reporting of system O&M events, the reboot command is invalid when you run this command to restart an ECS instance.

Restart an instance in the ECS console

  1. Log on to the ECS console.

  2. In the left-side navigation pane, choose Instances & Images > Instances.

  3. In the top navigation bar, select the region and resource group to which the resource belongs. 地域

  4. Restart one or more instances based on your business requirements.

    • To restart a single instance, find the instance and choose icon1 > Instance Status > Restart in the Actions column.

    • To restart multiple instances, select one or more instances and click icon1 > Restart in the lower part of this page.

  5. In the Restart Instance dialog box, select the restart mode and click Confirm.

Restart an instance by calling an API operation

  • To restart a single ECS instance in the Running state, call the RebootInstance operation.

  • To restart one or more ECS instances in the Running state, call the RebootInstances operation.