Use Simple Application Server on the Alibaba Cloud app

更新时间:
复制 MD 格式

You can configure your Simple Application Server instance on mobile devices, such as iOS and Android, using the Alibaba Cloud app. This topic describes how to perform common operations, including connecting to your server remotely, resetting passwords, monitoring the server, creating snapshots, and renewing the server.

Prerequisites

Logon

Use the search box

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

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

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

Access from the Product List

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

  2. In the upper-right corner, click More Consoles to go to the All Consoles page.

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

    Note

    If Simple Application Server is not on the Compute tab, check the My Consoles tab or search for Simple Application Server on the home page.

Remote connection

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

Connect using a password

This example shows how to remotely connect to a Linux server.

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

  2. On the server card, click Remote Connection.

  3. At the bottom of the SSH Connection page, click the image icon to switch to the password connection page.

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

    Parameter

    Description

    IP

    Defaults to the public IP address of the server.

    Username

    Enter a 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. Click Confirm Connection.

Connect using a key pair

Only Linux servers support connections that use key pairs. Before you use a key pair for a remote connection, you must create and attach the key pair. For more information, see Create or import a key pair and Attach a key pair.

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

  2. On the server card, click Remote Connection.

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

    Parameter

    Description

    IP

    Defaults to the public IP address of the server.

    Username

    Enter a username, such as root.

    Key

    Select the key .pem file.

    Key security token

    Enter the key password.

    Port

    Defaults to port 22.

    Alias

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

  4. Click Confirm Connection.

Reset a password

After you create a server, you can set its logon password. If you forget the password, you can reset it.

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

  • The administrator account for a Linux server is root.

  • The administrator account for a Windows server is Administrator.

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

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

  3. Enter and confirm the new password in the Server Management Password and Confirm Password fields, and then click Confirm Reset.

  4. In the Restart Server Now dialog box, click Confirm.

    Warning

    Restarting the instance stops it, which may interrupt your services. 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 for the new password to take effect.

Server monitoring

You can view monitoring information for your Simple Application Server instance, such as traffic, vCPU, memory, and system disk usage. This helps you understand resource usage and improves operations and maintenance (O&M) efficiency.

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

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

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

  4. Click the Monitoring tab. You can view detailed information about server traffic, vCPU, memory, network bandwidth, and the system disk over different time periods.

Start, stop, or restart a server

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

Stop a server

Important

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

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

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

  3. In the Stop Confirmation dialog box, click OK.

Start a server

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

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

  3. In the Start Confirmation dialog box, click OK.

Restart a server

Important

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

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

  2. On the server card, click Restart.

  3. In the Restart Confirmation dialog box, click OK.

Configure a firewall

The firewall is a virtual firewall that uses rules to control inbound traffic to your Simple Application Server instance and ensure its security. You can add, modify, disable, enable, and delete firewall rules.

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

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

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

    Add a rule

    • You can add a maximum of 50 firewall rules to a single 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. To send emails, use port 465.

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

      • Inbound traffic: Data transmitted from the public network or a private network to the instance.

      • Outbound traffic: Traffic that flows from a Simple Application Server instance to an external destination over the public or internal network.

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

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

      Parameter

      Description

      Application Type

      Select Custom or a preset application type.

      Protocol

      Select TCP, UDP, or ICMP.

      Port Range

      The port range is 1 to 65535. The following settings are supported:

      • Set a single port

        Enter the port number. For example, to allow access to MySQL database port 3306, set the port range to 3306.

      • Set a port range

        Specify a range separated by a forward slash (/). For example, to allow the FTP port range 20000 to 30000, 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 custom IPv4 addresses:

      • Allow access from a single IPv4 address

        Enter a single IPv4 address. For example: 192.168.0.100.

      • Allow access from all IPv4 addresses in a CIDR block

        Enter an IPv4 Classless Inter-Domain Routing (CIDR) block. For example: 192.168.0.0/24.

      Remarks

      Enter remarks for the firewall rule to help with future management.

    3. Click Submit.

    Modify a rule

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

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

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

    3. Click Submit.

    Disable a rule

    To temporarily close a port without creating a new firewall rule, you can disable the port.

    Important

    Disabling a firewall rule may make the corresponding port inaccessible and affect your services. Use this feature with caution and ensure it does not affect normal business operations.

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

    2. In the Disable Confirmation dialog box, click OK.

    Enable a rule

    You can enable a disabled port.

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

    2. In the Enable Confirmation dialog box, click OK.

    Delete a rule

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

    Note

    If you have not reached the maximum of 50 firewall rules, consider disabling the rule instead of deleting it. This lets you easily enable it again in the future.

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

    2. In the Delete Confirmation dialog box, click Confirm.

Create a snapshot

A snapshot is a backup file of disk data at a specific point in time. Snapshots are often used for daily data backups, recovering data after operational errors or network attacks, and creating custom images.

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

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

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

Renew a server

Renew your server promptly before it expires. Otherwise, the instance and its associated snapshots and custom images are released, and the data cannot be recovered. This section describes how to manually renew a server. For more information about renewals and auto-renewal, see Renew an expired resource.

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

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

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

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