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
-
You have downloaded and installed the Alibaba Cloud app on your mobile device. For more information, see Download the Alibaba Cloud app.
-
You have registered an account and logged on to the Alibaba Cloud app on your mobile device. For more information, see Log on to an account in the Alibaba Cloud app.
-
You have created a Simple Application Server instance on your PC. For more information, see Create a Simple Application Server instance.
Access the console
Use the search box
-
Open the Alibaba Cloud app and tap the Console tab.
-
In the search box at the top, enter SWAS.
-
In the search results, tap Go to Console to open the Simple Application Server console.
Use the product list
-
Open the Alibaba Cloud app and tap the Console tab.
-
In the upper-right corner, tap More Consoles to open the All Consoles page.
-
On the All Consoles page, on the Compute tab, tap Simple Application Server.
NoteIf 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.
-
On the Instances page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, tap Connect.
-
At the bottom of the SSH Connection page, tap the
icon to switch to the password-based logon page. -
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>. -
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.
-
On the Instances page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, tap Remote Connection.
-
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>. -
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.
-
On the Instances page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, tap .
-
Enter the Server Administration Password and Enter Password Again according to the server password requirements, and then click Confirm Resetting.
-
In the Restart Server Now dialog box, tap OK.
WarningRestarting 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.
-
On the Instances page, select the region where the instance is located. For example, China (Hangzhou).
-
Tap the server card to go to the View Details page.
-
In the Server Information section, view the usage of bandwidth, CPU, memory, and system disk.
-
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
Stopping a server makes your services unavailable. Proceed with caution.
-
On the Instances page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, tap .
-
In the Confirm Stop dialog box, tap OK.
Start server
-
On the Instances page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, tap .
-
In the Confirm Start dialog box, tap OK.
Restart server
Restarting a server causes a temporary service interruption. Proceed with caution.
-
On the Instances page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, tap Restart.
-
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.
-
On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).
-
Tap the server card to go to the Details page.
-
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.
-
-
At the bottom of the page, tap Add Rule.
-
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.
-
-
Tap Commit.
Modify rule
If a default or existing firewall rule does not meet your business needs, you can modify it.
-
For the target firewall rule, tap .
-
On the Modify Rule page, you can modify the Protocol, Port Range, Source IP Restriction, and Remarks as needed.
-
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.
ImportantDisabling a firewall rule may disrupt your services. Use this feature with caution.
-
For the target firewall rule, tap .
-
In the Confirm Disable dialog box, tap OK.
Enable rule
You can enable a previously disabled rule to reopen its port.
-
For the target firewall rule, tap .
-
In the Confirm Enable dialog box, tap OK.
Delete rule
If a firewall rule is no longer needed, you can delete it.
NoteIf 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.
-
For the target firewall rule, tap .
-
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.
-
On the Instances page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, tap .
-
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.
-
On the Instances page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, tap .
-
Set the Duration and confirm the server configuration and expiration date.
-
Tap Buy Now and follow the on-screen instructions to complete the payment.
> Reset Password
> Modify