One-stop solution: Experience the top service and flexibility of Amazon lightweight servers/VPS

Article directory

1. What is a lightweight server/VPS?

2. Server creation steps

3. Server connects to client (private key login)

4. Use a server to build a blog website

5. Personal explanation and summary


1. What is a lightweight server/VPS?

Lightweight server/VPS launched by Amazon: It is a virtual server solution based on cloud computing technology. It allows users to create and manage their own virtual server instances in the cloud while providing flexible computing resources and scalability. It technically simulates the functionality of an independent physical server, but actually runs multiple virtualized server instances on one physical server. Each virtual instance is logically isolated from each other and has its own independent operating system, storage space and resource allocation.

There is a free trial in the early stage. If you register, there will be no demonstration here. You can try it after reading this article:Link address

The functions and advantages of lightweight server/VPS:

1) Elasticity and scalability: Users can increase or decrease computing resources at any time as needed, without the need to purchase and maintain traditional physical servers.

2) Cost-effectiveness: Compared with traditional physical servers, lightweight servers/VPS have lower costs.

3) Reliability and stability: Amazon has the world's leading cloud infrastructure, providing high availability and failover mechanisms to ensure that users' applications and data always run reliably.

4) Security: Amazon lightweight servers/VPS provide multi-level security protection, including network firewall, authentication and data encryption functions to ensure that user data and servers are protected.

In short, Amazon lightweight server/VPS is a flexible, cost-effective, reliable and secure virtual server solution that can meet users of different sizes and needs, providing them with elastic computing resources and optimized performance. Next, I will explain how to use Amazon lightweight server/VPS in one stop.

2. Server creation steps

After registration, log in. After logging in, you will automatically jump to the management console, as follows:

You can switch the service area in the upper right corner. Here we can choose Seoul, which is closer. If you are a student party, you can also visit this page:Jump link, we can also find related free servers to use, haha, it depends on your needs:

After successfully logging in, we return to the previous homepage and select the server we want to use:

After clicking to start free use in December immediately, enter the console to start the virtual machine:

Here we take the ES2 VPS as an example. Return to the console and click ES2:

Go to the configuration interface of the service and click on the instance to create:

Here we fill in some basic information about the server and select some corresponding packages. Here I choose the free package:

Just select the default x86 (64-bit) for the system type and the default free package for the instance type:

Let’s briefly talk about the place where you create a key pair. Write the name of the key pair casually. Select the default RSA as the key pair type. Then the file format of the private key needs to be selected according to the client: If it is used to connect to the instance If the client is PuYYT, choose ppk format, if it is other clients, choose pem format. After clicking to create a key pair, the browser will download the corresponding private key file. The private key file here must be saved and will be used for client connections later:

The network settings can be configured simply as follows, and the following advanced information settings do not require too many operations:

The summary on the right is the currently configured VPS information. After confirming that there are no problems, click to start the instance:

After waiting for the instance to be started, we can see the detailed information of the instance:

Then click Connect to Instance. This shows how to connect to the instance. You can choose the default or ssh client. Here we choose the client:

Click to view all instances to see our current instance information. This is also in the pending state. After a while, it will become the running state:

If you are worried about the security of the server, you can also go to the server management interface to make relevant security settings:

3. Server connects to client (private key login)

Next we need to open our SSH client. Common clients include XShell, Finalshell, MobaXterm and Nxshell Termius, etc. XShell is paid but it has a free trial version. Here I use XShell as an example to demonstrate how to connect to the client. And initial setup:

Click the new session properties of XShell to perform the following initial settings:

Here we select the public key and click Settings:

Then click Browse to import the key we just downloaded, and then click OK:

Then we double-click the session we just created, and then we will be prompted whether to accept this host key. We choose to accept and save, and then enter the user name admin. Next, XShell prompts us that we are logged in:

Note: Different systems have different default user names. The debian we chose has a default user name of admin. If it is an ubuntu system, the default user name is ubuntu, others are either root or ex2-user, just pay attention here: 

Summary: In short, here we explain how to make good use of the free 12-month cloud server capabilities provided by Amazon Cloud, and then We have demonstrated the general steps from registration to creation, but how is this server used? For example, are we used to deploy a website, deploy an APP, or do training of large language models? When it comes to deploying stable diffusion, there are various ways to use it. Then you can experience it on your own as to what other operations you are more interested in using the Amazon cloud server.

4. Use a server to build a blog website

After we have the server, here we carry out the backend of the Amazon cloud server, and then use SSH to remotely access the cloud server. After we have the cloud server, we need to install the front-end software here, first of all git (not Friends who know git can refer to my previous column: git) Used to pull open source projects: execute the following command to install:

sudo yum install git

To verify whether git is installed successfully, enter the command git --help. The following interface will appear, indicating that the installation is successful:

Next we need to install this docker and docker compose:

sudo yum install docker -y

The blogging software we are going to use this time is solo, and many programmers’ personal websites are built based on it:

Its github address and its functions are as follows:

Next we execute the following command to clone the project to our local

git clone https://github.com/liumapp/solo-in-docker.git

Then just run it according to the running command it gave us for the open source project. I won’t go into details here:

sudo docker-compose up

It is really convenient to deploy projects through docker. If you are a docker novice, it is recommended to study it in depth. Finally, we open the browser and visit our server address. The interface is still very nice:

Then you can click to access its background, and you can see that the related functions are also very rich:

From a hands-on perspective, the operation of the website is still very smooth. You can experience the specific operation by yourself.

5. Personal explanation and summary

I have experienced the lightweight application server launched by Amazon and it is quite a good user experience. Whether it isquick startup and deployment or flexible resource adjustment it is relatively smooth. Relatively speaking, the most important point is the Amazon lightweight application server. With multiple data centers deployed globally, users can choose the nearest data center to obtain a low-latency access experience. This is unmatched by most domestic cloud service providers. The free trial it provides is also very user-friendly:

For a student party or individual developer, choosing Amazon Cloud is also a relatively good choice. A VPS is an independent, customizable, flexible and scalable development environment for developers like them, providing them with It provides an ideal platform for software development, testing and deployment. Different computing categories in the industry have different ways of providing them with choices:

Guess you like

Origin blog.csdn.net/qq_53123067/article/details/134218187