[fly-iot Feifan IoT] (3): How to apply for a cloud server from 0, deploy docker service, choose a cheap solution, use the simple method to purchase, choose a burst performance instance is cheap, choose a wrong unsubscribe, don't be impulsive buy server

foreword


The original link of this article is:
https://blog.csdn.net/freewebsys/article/details/129229979
fly-iot Feifan IoT column:
https://blog.csdn.net/freewebsys/category_12219758.html

Not to be reproduced without permission of the blogger.
The blogger’s CSDN address is: https://blog.csdn.net/freewebsys
The blogger’s nugget address is: https://juejin.cn/user/585379920479288
The blogger’s Zhihu address is: https://www.zhihu. com/people/freewebsystem

1. About cloud server


General cloud vendors have a one-month free trial promotion for users to choose from.
There are also cheap offers for new users.
It's not cheap after looking at the discount.

https://www.aliyun.com/page-source/developer/important_features/plan/enterprise

insert image description here

2. Choose the method, don’t be impulsive, choose according to your own needs, the sudden performance instance is cheap


Go directly to the purchase page to choose and find the one that suits you:

https://ecs-buy.aliyun.com/ecs/#/simple


I found the cheapest server, depending on my situation, I use docker to deploy multiple golang containers, 2c2g is almost enough.

If you just run nginx to get web pages 2c 1g is enough.

illustrate:

Intel® Xeon® Platinum 8269CY processor with a main frequency of 2.5GHz shares computing and network resource resource allocation methods, using CPU credit technology to allocate appropriate computing resources for instances.
It is suitable for front-end machines of web applications, light-load applications, microservices, development and test pressure test service application scenarios.
It is not suitable for scenarios that exceed the performance "baseline" for a long time or the stable computing performance requirements of enterprises.

price Discount
340 40% off for 1 year, there are discounts for old users and new users
925 3 years 5.5 folds
1195 5 years 3.8 fold

If you want to use it for a long time, it is more cost-effective than 3 years.

You can also choose a server with a lower configuration, which actually has 1c 0.5g of memory. It is estimated that you can only run an Nginx static web page.

insert image description here
There is another way, calculated according to the hour:
If the website is not ready, you can directly shut down the server, calculated:
0.118 24 265 = 750.48 It is not very cheap, but it is really convenient to start when needed.
Make a timed task, turn it on at night, perform statistical calculations, and then use it to complete the destruction.
This type of server is suitable, for example, when the server resources are insufficient for statistical calculation at the end of each month.
It is very convenient to temporarily calculate according to the hour.

https://ecs-buy.aliyun.com/ecs/#/simple

insert image description here

The mirror image selects the latest 7.5 version of centos. 8 is no longer supported.
insert image description here
The last part is the network fee:

You can choose to purchase fixed bandwidth.
insert image description here
The cost of bandwidth is not cheaper than that of the server, or you can choose to pay according to the usage traffic.

In the simple mode, the operating system can be reset:
insert image description here
at this time, you can choose to use the key pair to log in. It is to generate a pem file.
The authorization file is 600 permissions, and then use ssh -i to log in:

ssh -i ./xxxx.pem [email protected]

This is the safest way to log in, and it is more difficult to crack the login than the username and password.

3. In summary, the price of quick purchase is cheap, and the final conclusion is that it is the cheapest to buy once a year


https://ecs-buy.aliyun.com/ecs/#/simple
It seems that simple is cheaper, but if you don’t choose the network group, it will be about 100 yuan less.
This one is the cheapest, bought once a year.
Old users can enjoy 40% off new purchases for 1 year, limited to 1 unit at a time
insert image description here

At the same time, Quick Purchase does not currently support setting instance login credentials. If you need to log in to the instance remotely, you can complete the setting through the "Reset Instance Password" operation on the console after creation. It will feel more troublesome.
But you can save money, and everything else works normally.
At the same time, if you make a wrong choice, you can quickly unsubscribe and it will be valid within 5 days.
insert image description here

The original link of this article is:
https://blog.csdn.net/freewebsys/article/details/129229979

insert image description here

Guess you like

Origin blog.csdn.net/freewebsys/article/details/129229979