Alibaba Cloud server is the choice of use and configuration

Reference: https://www.chinaz.com/news/2018/0319/865059.shtml

How to use Alibaba Cloud server? With purchase tutorial-building website tutorial

2018-03-19 10:49 ·  Source: Contributed by users of webmaster's home
 
 

Alibaba Cloud Discount Network (For more tutorial information, please visit www.aliyunyouhui.com) Today, how to use the Alibaba Cloud server? The cloud server is now receiving more and more attention from people. Walked up in front. However, as a relatively new concept, many friends do not know exactly what the cloud server is. How to use the Alibaba Cloud server has also become a frequently asked question on the Internet. Let me talk about how to use the Alibaba Cloud server. this problem.

aliyunECS1-1024x524-min.jpg

Of course, as a very flexible and free server, in theory, you can use the Alibaba Cloud server to do many things. It's really like a computer of your own, but it's just not on hand, so how to use this question, everyone can use their imagination. In this article, I mainly explain the "mainstream" function of the server-"build site".

Many friends applied for a trial version of Alibaba Cloud server, or bought a special cloud host for students, and some friends paid for a server directly. Come to ask me after I finish, how do I use an Alibaba Cloud server. Well, I do n’t understand the world of local tyrants, but Alibaba Cloud Discount Network still recommends that you first study what to do, how to buy a server, and whether it is cost-effective.

Note that the article may mention that Alibaba Cloud host, Alibaba Cloud server, and Alibaba Cloud ECS refer to the same thing. This article does not mainly introduce the concept of Alibaba Cloud server, the key is how to use the word. I don't introduce the purchase of Alibaba Cloud servers. If you are concerned about how to buy Alibaba Cloud servers, you can refer to: Alibaba Cloud Server ECS Purchase Process The introduction of Alibaba Cloud server can refer to my previous article: Introduction of Alibaba Cloud ECS Server.

First of all, since we have to talk about how to use it, we have to talk about the limitations of the Alibaba Cloud server first.

Restriction on the use of Alibaba Cloud ECS cloud server:

1. Limitations of the software platform

Compared with many well-known virtual hosts, cloud hosting has undoubtedly become less restrictive in software. In the past, we often could only passively choose from various software that has been installed by the service provider. Now we can use Install almost any software we need on the cloud host. Of course, there are some restrictions.

When you buy Alibaba Cloud ECS server, you can choose public mirror (equivalent to pure version system) and third-party mirror in the mirror market (generally a system with integrated application environment). Here, the webmaster class recommends that you think about what you need to install before buying the server. What kind of program, then see if there is an application environment in the mirror market that can meet your own requirements. If you have one, just use it directly. It saves a lot of things for the future. Of course, you can also build the server environment by yourself after purchase.

At present, except for the installation and deployment of virtualization software (kvm, xen, docker, etc.), Alibaba Cloud ECS server can support normal mainstream software, and there are no relevant restrictions on the back end. Alibaba Cloud server is basically like a standalone host of its own, but it can't be installed with virtualization software. Fortunately, we generally don't need it. If some software fails to install or is abnormal, it is generally caused by the compatibility problem of the program and system, or the current environment of the system is chaotic, such as virus infection. If you encounter this situation, you can try to change the software version, or roll back the system and try to install and deploy again.

2. Restrictions on domain name and record

How to say, in fact, this is not a limitation of Alibaba Cloud servers, but a policy limitation. If you want to access your server by domain name, you have to file it first, as long as the server is in mainland China. This is a limitation. Regarding the matter of filing, I don't think it is a bad thing. After all, one of the original intentions of the country is to use this to manage the network environment and provide you with a relatively standardized and controllable Internet space. Filing has reduced the proliferation of spam sites to a certain extent, isn't it? Controlling the generation of spam websites from the source is indeed a good aspect of filing. As for the ensuing restrictions on information control and freedom of expression, it is indeed regrettable. I hope that the relevant departments can grasp it well, and I do n’t want to complain.

Alibaba Cloud provides five record numbers for each cloud host. When you submit a record, you need to consume a record number, but you can record multiple domain names when submitting a record, so this restriction will not make your filed domain name limited to five. , So this will not limit you to filing multiple domain names for your host. Alibaba Cloud server can build several websites

First, you need an operating system

After talking about the restrictions, to start using it, your cloud host first has an operating system. Usually, you need to choose your server operating system at the time of purchase. Many friends feel overwhelmed when choosing a server operating system, especially in the face of a variety of Windows, Unix, Linux and various versions, often unable to start. So how do you choose your own server operating system?

Which operating system to choose depends on the program to be run on the server. I believe that at the stage of buying a server, I already have a plan in my mind about what kind of website and technology I want to make.

If you are using an ASP / ASP.NET type website program or a software program based on the .NET framework, I recommend choosing the Windows series operating system. Although the Linux operating system can also run ASP / ASP.NET programs through certain technologies, it is not recommended to use it;

If you use a language with good cross-platform compatibility, such as PHP / JSP / Python, the Linux version of the operating system will be a better choice. The Linux version of the operating system has higher security, better stability, and various kinds of software for the server can be called an artifact, which is very suitable for the operating system of the server. However, compared with the Windows system, the operation of Linux will be more complicated and requires system learning. It is recommended that users who have a certain basis of Linux choose to use it.

In addition, if you really do n’t know what to choose, Webmaster Classroom recommends that you try the Linux system, and then slowly explore, I believe you will fall in love with it. I will use the Linux operating system as an example to explain the following content. Others who choose other operating systems can also basically refer to them. The tools are different. The content of this section can refer to: How to choose the operating system of Alibaba Cloud server

Log in to your Alibaba Cloud host (Linux Windows)

Alibaba Cloud host is bought and the operating system is selected. To control it, put a website or something on it. First, you have to log in to it. According to the operating system you choose, you can log in to the Alibaba Cloud server remotely through some tools.

  • Use remote connection software: Commonly used remote connection software includes Putty, Xshell, etc.

  • Management terminal NC: No matter whether you purchase bandwidth when creating an instance, you can log in to the instance through the management terminal of the management console for management.

  • Mobile phone: You can also connect to the instance through the remote desktop APP (such as SSH Control Light) on the mobile phone. Since the operation is relatively simple, it will not be repeated here.

Of course, there are many ways to remotely log in to a server. If you are a familiar operation and maintenance personnel, I believe you have found a remote login tool that suits you. I will not repeat them here.

Format and mount data disks

This step is not necessary. If you choose a data disk when you buy an Alibaba Cloud server, after logging in to the instance, the system needs to format the data disk first and then mount the data disk. The data disk can be configured in multiple partitions according to business needs. It is recommended to use the system's own tools for partition operation.

Note: The cloud server ECS only supports the secondary partition of the data disk, but not the secondary partition of the system disk (whether it is a Windows or Linux system). If you forcefully use a third-party tool to perform a secondary partition operation on the system disk, it may cause unknown risks, such as system crashes and data loss.

This operation is applicable to non-I / O optimized + SSD cloud disk Linux (Redhat, CentOS, Debian, Ubuntu) instances. For I / O optimized instance + SSD cloud disk data disk partition mounting, it is recommended to use the script tool: auto_fdisk_ssd.sh. For detailed procedures, please refer to: Formatting and Mounting Data Disks

Deploy the operating environment

Different website programs have different requirements for the server. Of course, most of the requirements are basically similar. According to your actual needs, you can start to configure the software environment on the Alibaba Cloud server to prepare for your installation of the website program.

Alibaba Cloud Server provides two ways to use the cloud server ECS instance deployment environment: image deployment / manual deployment. Here, the webmaster class recommends the image deployment method. Of course, if you need personalized deployment, you can also use manual deployment.

Upload and install website program

After deploying the operating environment, the final step is to upload your website program to the Alibaba Cloud host for installation. There needs to be some installation information, such as the root directory of the website, database account and password and so on. If it is a manually configured server, I believe you must know this information. If it is deployed with an image, each image has a corresponding manual that describes the information, usually in the home directory of the default user of the operating system.

Since the installation method of each website program is different, I will not repeat them here. Taking the common WordPress as an example, you can take a look at my article: Build and Install WordPress Tutorial in five minutes! !

Guess you like

Origin www.cnblogs.com/whdaichengxu/p/12757994.html