Use Simple Application Server on the Alibaba Cloud app
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
-
Download and install the Alibaba Cloud app on your mobile device. For more information, see Download the Alibaba Cloud app.
-
Register an account and log on to the Alibaba Cloud app on your mobile device. For more information, see Log on to an account on the Alibaba Cloud app.
-
You have created a Simple Application Server instance. For more information, see Create a Simple Application Server instance.
Logon
Use the search box
-
Open the Alibaba Cloud app and select the Console tab.
-
In the search box at the top, enter SWAS.
-
In the search results, click Go to Console to open the Simple Application Server console.
Access from the Product List
-
Open the Alibaba Cloud app and select the Console tab.
-
In the upper-right corner, click More Consoles to go to the All Consoles page.
-
On the All Consoles page, on the Compute tab, click Simple Application Server.
NoteIf 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.
-
On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, click Remote Connection.
-
At the bottom of the SSH Connection page, click the
icon to switch to the password connection page. -
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>. -
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.
-
On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, click Remote Connection.
-
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>. -
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.
-
On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, choose .
-
Enter and confirm the new password in the Server Management Password and Confirm Password fields, and then click Confirm Reset.
-
In the Restart Server Now dialog box, click Confirm.
WarningRestarting 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.
-
On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).
-
Click the server card to go to the Details page.
-
In the Server Information section, view usage information for bandwidth, CPU, memory, and the system disk.
-
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
Stopping a server makes your services unavailable. Proceed with caution.
-
On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, choose .
-
In the Stop Confirmation dialog box, click OK.
Start a server
-
On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, choose .
-
In the Start Confirmation dialog box, click OK.
Restart a server
Restarting a server causes a brief service interruption. Proceed with caution.
-
On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, click Restart.
-
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.
-
On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).
-
Click the server card to go to the Details page.
-
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.
-
-
At the bottom of the page, click Add Rule.
-
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.
-
-
Click Submit.
Modify a rule
If a created or default firewall rule does not meet your business needs, you can modify it.
-
For the target firewall rule, choose .
-
On the Modify Rule page, you can modify the Protocol, Port Range, Source IP restriction, and Remarks as needed.
-
Click Submit.
Disable a rule
To temporarily close a port without creating a new firewall rule, you can disable the port.
ImportantDisabling 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.
-
For the target firewall rule, choose .
-
In the Disable Confirmation dialog box, click OK.
Enable a rule
You can enable a disabled port.
-
For the target firewall rule, choose .
-
In the Enable Confirmation dialog box, click OK.
Delete a rule
If a firewall rule is no longer needed, you can delete it.
NoteIf 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.
-
For the target firewall rule, choose .
-
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.
-
On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, choose .
-
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.
-
On the Instance List page, select the region where the instance is located. For example, China (Hangzhou).
-
On the server card, choose .
-
Set the Subscription Duration, and confirm the server configuration and expiration date.
-
Click Buy Now and follow the on-screen instructions to complete the payment.
> Reset Password
> Modify