Small Technical Team Web infrastructure and Architecture (I) Preparation of environment and tools – Part 1

Web Technology Infrastructure and Architecture for small Technical Teams (II) Preparation of environment and tools – Part 2

Small Technical Team Web Infrastructure and Architecture (III) Preparation of environment and tools – Part 3

To be continued…

The outline

This topic “Small technical team Web technology facilities and architecture construction” will be divided into about ten articles around the following outline, for small team technology construction, front-end engineering, team management to explore, the final content may differ from the outline, updated from time to time. Interested students are also welcome to make suggestions and suggestions.

Small team nature

  • The whole technical team is less than 5 people
  • Job setting is not perfect, there may be a lack of operation and maintenance, testing personnel, etc
  • The mission time budget is tight
  • Be present at startups or small companies
  • High agility and freedom
  • Usually the technical requirements of the business are not very difficult

In the case of insufficient manpower, we should maximize the output of everyone’s ability, quickly complete the work target, and test the breadth of knowledge and initiative of everyone. Therefore, the small team mainly aims at convenience and scalability to quickly establish a set of production environment, which requires that the whole is not messy and there is a certain workflow standard under the condition of ensuring certain agility.

Online server selection

Server purchase

A server is the basic thing that allows people to access your product or service. Small teams are not special needs, it is best not to build their own servers, complicated operation, high cost, and online synchronization and migration is also more cumbersome. I recommend purchasing a server through the following form, throughAli cloudorTencent cloudSelect a cloud server.

Select the corresponding server type according to the actual budget, cloud vendor discount, company business bandwidth, and main service region.

It should be noted that the servers in the figure are all Linux systems. Some companies also choose Windows servers for some reasons, but usually we choose Linux servers to ensure the stability and security of all aspects.

Distinguish between production and test environments

In addition, the server must be different from the production environment and the test environment. In this way, the server used in the test environment and the production environment can be truly isolated and relatively safe.

Some teams deploy both production and test environments on the same server, separated by a secondary domain name (such as www.abc.com and test.abc.com), which I do not recommend. The test server can be purchased only on a low-configuration machine, so it is best to buy two servers in the end.

Server Login

Web Remote connection tool

Find your server on the console of a service provider (such as Ali Cloud or Tencent Cloud), choose the remote login method provided by the service provider for login, and enter your account and password to enter the server system.

SSH connection

Download an SSH connection tool (such as SecureCrt) or use a command line tool (such as Windows command line, Git bash, etc.) to connect. The command format is as follows:

ssh [user]@[ip]
#Such as SSH [email protected]
Copy the code

[user] is the user name. In Linux, the root user is the super administrator of the system and has the highest permission. [IP] is the public IP address of your server.

By default, port 22 needs to be enabled on the server. To specify a port, add -p [port] to the SSH command, for example

SSH -p 8888 [email protected]Copy the code

But I prefer to use SecureCrt to save and manage server connections. Good interface and no need to enter a password every time.

Domain name Resolution

After a server is installed, users can access the server services through public IP addresses. However, IP addresses are not friendly to users. Users want to access the server through a domain name that is easy to remember and good-looking.

The domain name to buy

Choose the domain name you want through cloud vendor’s domain name registration service:

The domain name registration

Purchase domain name according to national laws and regulations need to register login and submit to the administration bureau, in the cloud service provider to find the record entry and then complete the domain name record according to the guidance.

Note: if the filing is successful, it will take about 10 working days. The specific time depends on the situation. Please carefully check the filling materials and wait patiently.

Domain name resolution

Find your domain name in the domain name list and go to the resolution Settings.

Parsing Settings requires a few things to fill in.

The record type drop-down box describes their functions. Generally, select type A.

A host record is a domain name prefix. Common uses include:

  • www: The resolved domain name iswww.abc.com
  • @: Resolves the primary domain name directlyabc.com
  • *: generic resolution, matching all other domain names*.abc.com
  • Enter a secondary domain name prefix, for exampletestAnd resolve totest.abc.com

Enter the public IP address of the server you want to “bind” to, which can be viewed in the server information. TTL Sets the duration of domain name resolution records on the DNS server. I’m not going to talk about this, I’m just going to default if I have no special requirements,

Parsing records can be added as many as you need.

The test server does not need to purchase an additional domain name for resolution, but can use IP access directly or assign a secondary domain name to an existing domain (add a record value)

Storage Services (optional)

Often in business need to store photos, video and other static resources, these resources are often take up the space is larger, the static storage, we don’t want to let them take up server space and the realization of the additional upload file service, CDN service, can choose a suitable cloud vendor storage service is more reasonable, the following is the oss (object storage services) the purchase and use of a simple introduction.

Selecting the OSS Service

Create a Bucket

BucketEquivalent to a namespace, it is used to separate file stores for different businesses and can be named by product name, system name, etc.

Read the storage service development documentation

Find the developer page on the cloud vendor’s official website and search for the corresponding service, for exampleOSSFind the documentation for your language in the directory to familiarize yourself with the implementation of the storage operation.

Look at the Bucket

You can view the statistics and other information about the storage Bucket. You can view the information required in the previous storage interconnection operation.

The next article will discuss the process of installing Docker in the cloud server and common tools or services for docker-based management and use. Thanks for reading!