Guide
This document is a simplified version of HUAWEI CLOUD official documentation, combined with the actual operation of the deployment, to help you quickly master The most basic skills.
ECS
You can manage the ECS on Console, includes:
- Start
- Stop
- Restart
- Delete
- Modify ECS Specifications
Release ECS mean delete it, suitable for a pay-as-you-go instance that is not locked
Create ECS
-
Login to Console, open:【Cloud Server Console】>【Elastic Cloud Server】>【Buy ECS】
-
Select the billing mode, instance type like these
- Subscription: Allows you to pay upfront and then use the service over a period of time.
- Pay-As-You-Go: A billing method based on the amount of resources you actually use.
- Preemptible Instance: A billing method based on the amount of resources you actually use.
-
Select the Image step is very important
- Public Image: Alibaba Cloud provides official public images.
- Custom Image: Created from system snapshots of yourself
- Shared Image: Other user shared for you
- Marketplace Image: Alibaba Cloud Marketplace provides hundreds of high-quality third-party images that have undergone a strict review process.
-
If you use the Marketplace Image, suggest use the search key "websoft9"
-
Select the image you want to use
-
Go to next steps, include set Networking, System Configurations and so on
-
Wait 2-3 minutes for the ECS running when completed these steps
Create Key Pairs
You should create Key Pairs before create ECS if you want to use Key Pairs for ECS connection
-
Login to Console, open:【Cloud Server Console】>【Key Pairs】
-
Set the SSH Key Pair Name and select Creation Mode
-
When you complete the creation, please download the ××××.pem to your local computer
Connect ECS
The Command is the basic operation of the Linux system. HUAWEI CLOUD provides two web-based SSH tools that can be logged in without an account.
Log in to the HUAWEI CLOUD Console, open the ECS -> Operations, click "Remote Login"
Reset Password
You can reset the ECS's password by the below method:
-
Login to HUAWEI CLOUD console, list the ECS
-
Open the menu:【More】>【Reset Password】
-
Restart the ECS and it take effect
Modify ECS Specifications
If you want to change the ECS configuration for business, you should Upgrade or Downgrade it
-
Login to HUAWEI CLOUD console, list the ECS
-
Open the 【ModifySpecifications】menu of the target ECS
-
You can choose from the following upgrade or downgrade schemes
Change/Reinstall OS
If you want to recover to ECS to the state of first installation, you need 【Change OS】operation:
-
Login to HUAWEI CLOUD console, list the ECS
-
Stop your the target ECS
-
Open the menu: 【More】>【Manage Image/Disk】>【Change OS】
-
Go to the next steps
Backup
The best backup method is automatic backup, you can use the Snapshot function of HUAWEI CLOUD to backup your Disk automatically.
You can use the HUAWEI CLOUD Cloud Backup and Recovery (CBR) to backup your data.
You can backup your disk by the below methods:
Cloud Disk Backups
Back up and restore cloud disks. You can use a cloud disk backup to restore data to a backup point or create a new disk.Backups of encrypted disks are automatically encrypted to ensure data security.
-
Login to Console, go to: 【Recovery Console】>【Cloud Disk Backups】
-
Then click the button 【Buy Disk Backup Vault】
-
You can select disks will be applied to this Backup Vault
-
Suggest set the backup strategy
Cloud Server Backups
Back up and restore cloud servers, ensuring the security and consistency of your data.
-
Login to Console, go to: 【Cloud Server Console】>【Cloud Server Backups】
-
Then click the button 【Buy Disk Backup Vault】
-
You can select Servers will be applied to this Backup Vault
-
Suggest set the backup strategy
Disk, Snapshot and Image
For HUAWEI CLOUD, Elastic Volume Service (EVS) is cloud disk which is a component for ECS.
Create Snapshot
You can create snapshot for disk to backup
-
Login to Console, go to: 【Cloud Server Console】>【Elastic Volume Service 】>【Disk】
-
Select one Disk which you want to create snapshot for it
-
Complete the next steps
Create Image
-
Login to Console, list all ECS from 【Cloud Server Console】
-
Open the menu: 【More】>【Manage Image/Disk】>【Create Image】
-
Complete the next steps
Buy Disk
-
Login to Console, go to: 【Cloud Server Console】>【Elastic Volume Service 】>【Disk】
-
Click 【Buy Disk】 button
-
Set the Disk Type and Disk Size
-
Attach the new disk to ECS
Detach Disk
You can detach a Disk which you don't want to use for a ECS
-
Login to Console, go to: 【Cloud Server Console】>【Elastic Volume Service 】>【Disk】
-
Go to menu: 【More】>【Detach】
-
Complete the next steps
Expand Disk
You can resize your System Disk and Data Disk online by console
Resize most of time mean increase disk storage
-
Login to Console, go to: 【Cloud Server Console】>【Elastic Volume Service 】>【Disk】
-
Click the link 【Expand Capacity】
-
Complete the next steps
Network and Security
Check IP
Elastic IP is the IP address for Internet access, that mean it the same with Internet IP
-
Login to Console, list all ECS from【Cloud Server Console】
-
You can get the EIP from the IP Address column
Change IP
-
Login to Console, list all ECS from【Cloud Server Console】
-
Go to the detail page of ECS and click 【EIPs】 tab
-
Click 【Bind EIP】 button to complete this solution
Security Group
A Security Group acts as a virtual firewall for Elastic Compute Service (ECS) instances to control inbound and outbound traffic and improve security. You can use security groups and security group rules to define security domains in the cloud.
Below is a sample for you how to Enable TCP:80 port on security group:
-
Login to console, lis all ECS by 【Cloud Server Console】>【Security Group】
-
Add a rule or modify a rule
-
Then, add a new rule by click the 【Add Rule】button授权对象一般为较为合适
- Destination set to HTTP(80)
- Source set to 0.0.0.0/0
-
Save it
Domain Name
Domains is a domain name management platform that provides domain name registration, transaction, monitoring, and protection services.
Below steps is need for you to enable domains visit of your application:
Resolve Domain
Resolve Domain mean that you set a mapping relations between domain and EI
-
Buy your Domain and register it
-
Login to DNS console, lis all domains
-
Add an Add Record for it
-
Save it and wait for 2-10 minute, then your DNS is take effect
Binding Domain
The precondition for binding a domain is that HUAWEI CLOUD can accessed by domain name.
When there is only one website on the server, you can visit the website without binding domain. While considering the server security and subsequent maintenance, Binding Domain is necessary.
Steps for binding HUAWEI CLOUD domain are as follows:
- Connect your Cloud Server;
- Modify vhost configuration file,and change the server_name and proxy_pass if you want.
server
{
listen 80;
server_name websoft9.yourdomain.com; # Set your domain
location / {
proxy_pass http://127.0.0.1:8880; # Set your port
...
} - Restart Nginx service
sudo systemctl restart nginx
Domain Beian
If you ECS is created in China, and you want to use Domain for application, you must complete the Domain Beian for Government governance.
Refer to: Domain Beian