Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the method of aws free server application and network agent construction?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

The main content of this article is to explain "what is the method of aws free server application and network agent building". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what is the method of aws free server application and network agent building"?

Matters needing attention

There is a 40GB traffic limit every month, and the fee will be deducted if it is exceeded. (pay attention to the email reminder related to the opening fee)

There is a limit of 750 hours per month, but in fact, a maximum of 744 hours a month, so time warning emails can be ignored.

Most ip is academically blocked by Google and requires constant attempts to change nodes (depending on personal luck).

After one year of free expiration, you can log out of the server and register for another mailbox to continue to use it for free. (the latest free policy of aws shall prevail.)

necessary condition

Credit card (domestic one is also OK, do not need visa)

A temporary vpn and keep the global mode on (optional, visit the aws console website, access is slow in some parts of the country, especially in the case of campus networks)

An email address that has not applied for an aws free server

A SSH remote login tool for access control remote servers, you can choose the web version of remote control that comes with aws (no preparation, some servers in some areas do not support it, and the web version of ssh does not support the display of Chinese characters), or you can install the client (client recommendation: https://mobaxterm.mobatek.net/)

Buy a domain name (no need to put on record, just buy a cheap one and use it. There is a domain name purchase section in this tutorial)

Apply for an aws account

Address: https://aws.amazon.com/free/ (follow the prompts on the website to register your account and verify your identity)

(note: a credit card needs to be prepared, and one dollar will be frozen for verification)

Apply for and activate a virtual machine

Go to the console page (select the server region in the upper right corner)

The Internet speed in Hong Kong (which needs to be opened in the region, free of charge) will be faster, followed by Tokyo and Singapore, but I feel that there are more ip blocked by google academic in places with fast Internet speed.

Apply for a virtual machine

As shown in the picture

Recommend ubuntu18 (ignore the options in the picture)

Note: choose the free one, and others will be fine by default

The aws server uses the key file for ssh control access, and if you previously had a key and saved it, just use the previous one. If not, create a key and take whatever name you want, but be sure to download it and save it. In the future, if you want to be remote on the client side

Required to access the control server.

In this way, your free CVM will be created and can be used for free for a year.

Note: if you want to use it all the time for free, remember to shut down the CVM and cancel your account almost a year later, then register with another email account and bind your credit card (the one you used before is OK).

Wait for initialization to complete

Let's check to see if you can access Google academic. Here, through the connection service provided by aws, use EC2 Instance Connect to connect (the default configuration is fine). If the web version is not connected or not, try using the client version of ssh tool, and restart the instance if not. (most of the client access is due to ssh tools not set up or local network problems.)

(if any) follow the prompts to upgrade the tool: sudo yum update

(copy and paste commands on the web side are not easy to use. Ctrl+c/v and right mouse button copy are both tried. In many cases, if the copy is not successful, just try it a few more times. )

Use curl to access google academics and check whether ip is blocked (the following figure represents normal access).

The presence of sorry is blocked.

If it is blocked, terminate the instance, and then apply for a new one (remember to terminate first, and then repeat the above steps).

When you are done, check your host and remember its ipv4 address.

Configure security groups

We set up the security group to add camouflage for later building agents (open ports 22, 80, 443 in the security group)

Remember the name of the corresponding security group

Select a security group in the left column

And go to the security group page

Edit inbound rules (if you are in English, find it yourself)

Click below to add the rule, configure as shown in the figure, and finally click Save Rule.

Domain name configuration

Used in disguise to make your proxy server look like a website, and when you use a proxy, the outside world thinks you are browsing the site all the time

Purchase domain name (already ignored)

Register an account in Aliyun, Tencent Cloud or just aws and purchase a domain name

Take Aliyun as an example: you can log on to the official website directly with your Alipay account.

1. Domain name registration: https://cn.aliyun.com/ (Aliyun Wanwang domain name registration)

Find a cheap one to buy (you'd better buy an English domain name)

No need to put on record

Domain name resolution

Go to the console, find the domain name you just purchased, and click parsing.

Add record

Just save it.

Server agent selection and installation

First connect to the server remotely. This is demonstrated by the client remote SSH tool, or you can directly use the previous web version of the remote control tool EC2 Instance Connect. The commands are all the same, but the web version does not support Chinese. When you encounter garbled codes in Chinese, you can refer to the screenshots in the relevant tutorials.

If you use web-side remote control, skip the following three images.

Install and open the SSH Telnet tool originally mentioned (recommended: https://mobaxterm.mobatek.net/)

Create a new session

Click ok, and then double-click to open

If you just created it, you may not be able to connect, it will take a while, or check to see if the local network is blocked.

First set a password for the root user (the password entered under linux is not displayed):

Sudo passwd root

Then switch to the root user:

Su root

Then we use the one-click installation script on the Internet to install the agent (if the previous is correct, just follow the script prompts to install the agent)

(if you use mobaxterm, copy and right-click to paste)

At this point, I believe that everyone on the "aws free server application and network agent building method is what" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report