Manage Simple Application Server in the Alibaba Cloud app

更新时间:
复制 MD 格式

You can use the Alibaba Cloud app on mobile devices, such as iOS and Android, to log on to the Simple Application Server console and manage your servers. This topic describes how to perform common tasks on your mobile device, such as making a remote connection, resetting a password, monitoring a server, creating a snapshot, and renewing a server.

Prerequisites

Access the console

Use the search box

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

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

  3. In the search results, tap Go to Console to open the Simple Application Server console.

Use the product list

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

  2. In the upper-right corner, tap More Consoles to open the All Consoles page.

  3. On the All Consoles page, on the Compute tab, tap Simple Application Server.

    Note

    If Simple Application Server is not listed on the Compute tab, you can find it on the My Consoles tab or search for it on the home page.

Remote connection

You can use the Alibaba Cloud app to remotely connect to a Simple Application Server instance with a password or a key pair.

Password

This example shows how to connect to a Linux server.

  1. On the Instances page, select the region where the instance is located. For example, China (Hangzhou).

  2. On the server card, tap Connect.

  3. At the bottom of the SSH Connection page, tap the image icon to switch to the password-based logon page.

  4. On the SSH Connection page, configure the logon credentials.

    Parameter

    Description

    IP

    Defaults to the public IP address of the server.

    Logon Name

    Enter the username, such as root.

    Password

    Enter the password for the username.

    Port

    Defaults to port 22.

    Alias

    Defaults to root@<public IP address of the server>.

  5. Tap Confirm Connection.

Key pair

Only Linux servers support key pair connections. Before you connect to a server with a key pair, you must create and bind one. For more information, see Create or import a key pair and Bind a key pair.

  1. On the Instances page, select the region where the instance is located. For example, China (Hangzhou).

  2. On the server card, tap Remote Connection.

  3. On the SSH Connection page, configure the logon credentials.

    Parameter

    Description

    IP

    Defaults to the public IP address of the server.

    Logon Name

    Enter the username, such as root.

    Key Pair

    Select the .pem key file.

    Key passphrase

    Enter the key passphrase.

    Port

    Defaults to port 22.

    Alias

    Defaults to root@<public IP address of the server>.

  4. Tap Confirm Connection.

Reset server password

After creating a server, you can use the Reset Password feature to set its logon password. You can also use this feature if you forget the password.

You can set or reset the password only for the administrator account on the console.

  • The administrator account for a Linux server is root.

  • The administrator account for a Windows server is Administrator.

  1. On the Instances page, select the region where the instance is located. For example, China (Hangzhou).

  2. On the server card, tap image > Reset Password.

  3. Enter the Server Administration Password and Enter Password Again according to the server password requirements, and then click Confirm Resetting.

  4. In the Restart Server Now dialog box, tap OK.

    Warning

    Restarting the instance stops your services and may cause business interruptions. We recommend that you perform this operation during off-peak hours. You can select No, I will restart it later and then restart the server during off-peak hours to apply the new password.

Server monitoring

View monitoring metrics for your Simple Application Server instance, such as traffic, vCPU, memory, and system disk, to understand resource usage and improve O&M efficiency.

  1. On the Instances page, select the region where the instance is located. For example, China (Hangzhou).

  2. Tap the server card to go to the View Details page.

  3. In the Server Information section, view the usage of bandwidth, CPU, memory, and system disk.

  4. Tap the Metrics tab to view detailed information about server traffic, vCPU, memory, network bandwidth, and the system disk over a specified time range.

Start, stop, or restart a server

You can start, stop, or restart a server as needed.

Stop server

Important

Stopping a server makes your services unavailable. Proceed with caution.

  1. On the Instances page, select the region where the instance is located. For example, China (Hangzhou).

  2. On the server card, tap image > Stop.

  3. In the Confirm Stop dialog box, tap OK.

Start server

  1. On the Instances page, select the region where the instance is located. For example, China (Hangzhou).

  2. On the server card, tap image > Start.

  3. In the Confirm Start dialog box, tap OK.

Restart server

Important

Restarting a server causes a temporary service interruption. Proceed with caution.

  1. On the Instances page, select the region where the instance is located. For example, China (Hangzhou).

  2. On the server card, tap Restart.

  3. In the Confirm Restart dialog box, tap OK.

Configure firewall

The firewall controls inbound traffic to your Simple Application Server instance to ensure security. You can add, modify, disable, enable, and delete firewall rules for your instance.

  1. On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).

  2. Tap the server card to go to the Details page.

  3. Tap the Firewall tab and perform the following operations as needed.

    Add rule

    • You can add up to 50 firewall rules for each Simple Application Server instance.

    • Port 25 is the default email service port. For security reasons, port 25 is restricted by default on Simple Application Server instances. If you need to send emails, use port 465.

    • The firewall controls only inbound traffic. All outbound traffic is allowed by default.

      • Inbound traffic: data transmitted to a Simple Application Server instance from an external source.

      • Outbound traffic: data transmitted from a Simple Application Server instance to an external destination.

    1. At the bottom of the page, tap Add Rule.

    2. On the Add Rule page, configure the parameters.

      Parameter

      Description

      Application Type

      Select Specify a custom value or a preset application type.

      Protocol

      Select TCP, UDP, or ICMP.

      Port Range

      The valid port range is 1 to 65535. You can set the port range in the following ways:

      • Specify a single port

        Enter the port number to allow. For example, to allow traffic for the default MySQL port (3306), set the port range to 3306.

      • Specify a port range

        Specify a port range separated by a forward slash (/). For example, if you need to allow ports from 20000 to 30000 that are manually configured in an FTP configuration file, set the port range to 20000/30000.

      Source IP restriction

      The default value is 0.0.0.0/0, which allows access from all IPv4 addresses. You can also specify the IPv4 addresses that are allowed to access the server:

      • Allow access from a single IPv4 address

        Enter a single IPv4 address. Example: 192.168.0.100.

      • Allow access from all IPv4 addresses in a CIDR block

        Enter an IPv4 CIDR block. Example: 192.168.0.0/24.

      Remarks

      Enter remarks for the firewall rule to facilitate future management.

    3. Tap Commit.

    Modify rule

    If a default or existing firewall rule does not meet your business needs, you can modify it.

    1. For the target firewall rule, tap image > Modify.

    2. On the Modify Rule page, you can modify the Protocol, Port Range, Source IP Restriction, and Remarks as needed.

    3. Tap Commit.

    Disable rule

    If you need to temporarily close a port, you can disable its corresponding rule instead of deleting it. This allows you to easily re-enable it later.

    Important

    Disabling a firewall rule may disrupt your services. Use this feature with caution.

    1. For the target firewall rule, tap image > Disable.

    2. In the Confirm Disable dialog box, tap OK.

    Enable rule

    You can enable a previously disabled rule to reopen its port.

    1. For the target firewall rule, tap image > Enable.

    2. In the Confirm Enable dialog box, tap OK.

    Delete rule

    If a firewall rule is no longer needed, you can delete it.

    Note

    If you have not reached the limit of 50 firewall rules, we recommend that you disable the rule instead of deleting it. This allows you to easily enable it later.

    1. For the target firewall rule, tap image > Delete.

    2. In the OK dialog box, tap OK.

Create snapshot

A snapshot is a point-in-time copy of your disk data. Snapshots are often used for routine backups, disaster recovery, and creating custom images.

  1. On the Instances page, select the region where the instance is located. For example, China (Hangzhou).

  2. On the server card, tap image > Create Snapshot.

  3. On the Create Snapshot page, select a disk, enter a snapshot name, and then tap Commit.

Renew server

Renew your server subscription before it expires. Otherwise, the instance and its associated snapshots and custom images are released, and the data cannot be recovered. For more information about renewals and automatic renewal, see Renew an expiring resource.

  1. On the Instances page, select the region where the instance is located. For example, China (Hangzhou).

  2. On the server card, tap image > Renew.

  3. Set the Duration and confirm the server configuration and expiration date.

  4. Tap Buy Now and follow the on-screen instructions to complete the payment.