Use ECS in the Alibaba Cloud app

更新时间:
复制 MD 格式

This topic describes how to perform common operations in the Alibaba Cloud app, including creating an instance, connecting remotely, resetting a password, changing an operating system, monitoring data, and performing a health check.

Prerequisites

Access the console

You can access the ECS console from the Search box or the Product List.

Search box

  1. Open the Alibaba Cloud app and tap the Console tab.

  2. In the search box at the top, enter ECS.

  3. In the ECS section, tap Go to Console to open the ECS console.

Product list

  1. Open the Alibaba Cloud app and tap the Console tab.

  2. At the top, tap All Consoles to open the All Consoles page.

  3. On the All Consoles page, tap Compute and then tap ECS.

    If you do not see ECS on the Compute tab, check the My Console tab or search for ECS on the home page.

Create an instance

Note
  • If you have already created an ECS instance in the console on your PC, you can skip this step.

  • The message You do not have an ECS instance appears on the Instance List page the first time you access the ECS console in the Alibaba Cloud app. Follow the on-screen instructions to create an ECS instance.

  1. On the Instance List page, tap Create Instance to open the ECS purchase page.

  2. On the purchase page, select a billing method, region and zone, instance type, and image. Review the costs and tap Buy Now.

  3. After the ECS instance is created, you can view its information, such as the instance status, on the Instance List page under the Instances tab.

Remote connection

You can connect to an ECS instance in the Alibaba Cloud app using Workbench or SSH.

Workbench

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap Workbench Remote Connection.

  3. On the Log On to Instance page, configure the logon information and tap Confirm Logon.

    The following table describes the key parameters. Use the default values for other parameters.

    Parameter

    Description

    Logon method

    You can select Configure Logon or Password Logon. In this example, Password Logon is selected.

    If you select Configure Logon, tap image and provide the required credentials as prompted.

    Network connection

    You can use a public or private network connection. This example uses a public network.

    Connection protocol

    You can select Terminal Connection (SSH) or Remote Desktop (RDP). In this example, Terminal Connection (SSH) is selected.

    Use SSH to connect to a Linux instance and RDP to connect to a Windows instance.

    Port

    The default port is 22.

    Username

    Enter a username, such as root.

    Password

    Enter the password for the specified username.

SSH

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap SSH Connection.

  3. On the SSH Connection page, configure the logon information and tap Confirm Connection.

    • Key Pair Logon

      Only Linux instances support connections by using key pairs. Windows instances do not support this method. Before you can connect with a key pair, you must first create and bind it. For more information, see Manage key pairs.

      Parameter

      Description

      Logon name

      Enter a username, such as root.

      Key

      Select the .pem key file.

      Key passphrase

      Enter the key passphrase.

      Port

      The default port is 22.

    • Password Logon: At the bottom of the SSH Connection page, tap the image icon to switch to the password connection page.

      Parameter

      Description

      Logon name

      Enter a username, such as root.

      Password

      Enter the password.

      Port

      The default port is 22.

Reset password

If you forget your instance password, or did not set one during creation, you must reset it.

Warning

Restarting an instance interrupts its services, which can disrupt your business. We recommend performing this operation during off-peak hours.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap Reset Password.

  3. On the Reset Password page, enter the New Password and Confirm Password, and then tap Submit.

Start, restart, stop, or release instance

Start instance

When an instance is in a state where it cannot provide services, such as Stopped, you must start the instance before you can use it.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap Start.

  3. Tap OK.

    After the instance is started, its state changes to Running.

Restart instance

Important

Restarting an instance is a common maintenance operation for tasks like applying updates. This action temporarily interrupts your services, so proceed with caution.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap image > Restart.

  3. Select a restart method, such as whether to force a restart, and then tap OK.

    Important

    Force restarting an instance may cause unsaved data to be lost. Proceed with caution.

Stop instance

Important

Stopping an instance makes your services unavailable. Proceed with caution.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap image > Stop.

  3. On the Stop Instance page, tap Next.

  4. Select a stop method or a stop mode. For example, you can select whether to force a stop or use Economical Mode. Then, tap OK.

    After the instance is stopped, its state changes to Stopped.

Release instance

If you no longer need an instance, you can release it to avoid additional charges.

Note

You cannot release a subscription instance before it expires. To do so, you must first convert it to a pay-as-you-go instance or cancel the subscription.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap image > Release Settings.

  3. In the Information Confirmation step, select a release method, such as whether to schedule the release, and then tap Next.

  4. In the Confirm Operation step, select I understand that the selected resources and their associated resources will be released, and I am aware of the related data risks., and then tap Confirm.

Change operating system

You can change an instance's operating system if the current one is incorrect or no longer meets your business needs.

Note

You cannot change the operating system of a running ECS instance.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap image > Change Operating System.

  3. As prompted, select the new image and logon credentials, and then tap Confirm.

Create custom image

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap image > Create Custom Image.

  3. On the Create Custom Image page, enter an image name and description, and then tap Confirm.

    After the custom image is created, you can view its information on the Images tab.

Add security group rule

Security group rules control inbound and outbound traffic for an instance. Use these rules to allow or deny specific traffic, block unnecessary ports, limit traffic for specific protocols, and control application access.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap image > Add Security Group Rule.

  3. Select an authorization policy, protocol type, authorization type, and authorization object, and then tap Confirm.

    After the security group rule is added, you can find it on the Security Group Rules tab of the corresponding security group.

Attach disk

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap image > Attach Disk.

  3. On the Attach Disk page, select the target disk and its release behavior, and then tap Submit.

    After the disk is attached, you can view the attached disk on the Disks tab.

Monitor data

Monitoring an ECS instance's traffic, vCPU, memory, and disk usage helps you track resource consumption and improve O&M efficiency.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap Monitoring.

  3. On the Monitoring tab, view monitoring information such as bandwidth, CPU utilization, and memory usage.

    • Monitoring Item Type: You can select OS monitoring, basic monitoring, or network monitoring.

      Basic monitoring data is collected every minute, and OS monitoring data is collected every 15 seconds. For more information, see OS monitoring.
    • Time Period: The aggregation method varies by chart. A shorter time range provides more granular data.

Health check

The health check feature diagnoses an instance's system, network, and disk status. This helps you understand the instance's condition and quickly resolve common issues.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target instance and tap image > Diagnose Now.

  3. On the Create Instance Health Diagnosis page, select the instance to diagnose and the time range for troubleshooting, and then tap Diagnose Now.

    In the diagnosis report that appears, view the details and resolve any detected issues.

Renew instance (subscription only)

Pay-as-you-go instances cannot be renewed. This section applies only to subscription instances.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. Renew the subscription ECS instance.

    Auto-renewal

    This example shows how to enable auto-renewal for an existing subscription instance. You can also enable auto-renewal when you create an instance.

    1. On the Instances tab, find the target subscription instance and tap image > Configure Auto-renewal.

    2. On the Configure Auto-renewal page, read the notice, turn on Auto-renewal, select a Renewal Duration, and then tap Confirm.

      When the subscription is about to expire, the system automatically renews it and deducts the fee, provided your account has a sufficient balance.

    Manual renewal

    1. On the Instances tab, find the target subscription instance and tap image > Renew.

    2. On the Renew ECS Instance page, select a renewal period, confirm the instance information, read the relevant agreements, and then tap Pay Now.

    3. On the payment page, tap Purchase.

      After the renewal is complete, you can view the updated expiration date of the instance on the Instances tab.

Temporary bandwidth upgrade (subscription only)

If you are using a subscription instance and have high-traffic business demands during specific periods, such as promotional events or data migration, you can temporarily upgrade its public bandwidth to handle the increased load without incurring long-term costs.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target subscription instance and tap image > Temporary Bandwidth Upgrade.

  3. On the Temporary Bandwidth Upgrade page, select the bandwidth size for the temporary upgrade and the time range for the upgrade, and then tap Confirm Upgrade.

  4. On the payment page, tap Purchase.

    After the temporary bandwidth upgrade is complete, you can view the upgraded bandwidth on the Basic Information page of the subscription instance.

Upgrade or downgrade configurations (subscription only)

If your subscription instance's configuration no longer meets your business needs, you can change its instance type, public bandwidth settings, and the billing method for data disks.

  1. On the Instance List page, select the instance's region. For example, China (Hangzhou).

  2. On the Instances tab, find the target subscription instance and tap image > Upgrade/Downgrade.

  3. On the Upgrade/Downgrade page, choose an option based on your needs.

    Upgrade configurations

    1. Tap Upgrade Configurations, read the instructions, and then tap Next.

    2. As prompted, select the target instance type and basic bandwidth information, and then tap Submit Order.

    3. On the payment page, tap Purchase.

    Temporary bandwidth upgrade

    1. Tap Temporary Bandwidth Upgrade, read the instructions, and then tap Next.

    2. On the Temporary Bandwidth Upgrade page, set the target bandwidth, select the start and end times for the bandwidth upgrade, and then tap Submit Order.

    3. In the Upgrade Notice dialog box that appears, tap Proceed to Payment.

    4. On the payment page, tap Purchase.

    Downgrade upon renewal

    1. Tap Downgrade upon Renewal, read the instructions, and then tap Next.

    2. On the Downgrade upon Renewal page, select the target instance type, public bandwidth billing method and value, downgrade duration, and instance restart time, and then tap Submit Order.

    3. In the User Instructions dialog box that appears, tap OK.

    4. On the payment page, tap Purchase.

Delete snapshot

If you no longer need a snapshot or if you have exceeded your quota, you can manually delete snapshots to free up space and avoid ongoing charges.

  1. On the Instance List page, select the snapshot's region. For example, China (Hangzhou).

  2. On the Snapshots tab, find the target snapshot and tap image > Delete Snapshot.

  3. On the Delete Snapshot page, tap Delete Snapshot.

    To delete a snapshot that is used by a custom image, you must first delete the custom image. After you delete the custom image, ECS instances created from that image can still run, but you can no longer reset their operating systems.
    Important

    After a snapshot is deleted, it cannot be recovered and the data cannot be retrieved. In addition, disks created from the snapshot cannot be initialized. Proceed with caution.