1. Connect to Server via command line and set up
1.1 Connect Server
#: ssh root@hctec.top
ssh: remote connection tool
root: remote server username, here I use: root user
hctec.top: is the domain name of the server, of course you can use IP directly
1.2 Directly connect to the Server without a password (we use the ssh-copy-id tool to verify the secret key)
#: brew install ssh-copy-id
#: ssh-copy-id root@hctec.top
Brew: brew, also called Homebrew, is a software package management tool on Mac OSX. It can easily install or uninstall software on Mac. It only requires one command, which is very convenient. Reference: brew installation and use
The function of brew is similar to apt-get under ubuntu system
2. ECS instance:
2.1 Instance Snapshot
Personal understanding: It can be used as a backup of the system. When the system encounters an irreparable operation, the system can be restored by rolling back the instance;
2.2 System image
We can make a system image based on the snapshot of the system disk, so that we do not need to repeatedly configure the server.
2.3 Security Group
Specify intranet & public network access rules