Alibaba Cloud Server Beginner Tutorial_Save Money to Purchase_Configuration_Full Tutorial on Building a Website

Alibaba Cloud server usage tutorial includes cloud server purchase, cloud server configuration selection, cloud server opening port number, building the web environment required for the website, installing the website program, domain name resolution to the cloud server public IP address, and finally the entire website online process, Alibaba Cloud Encyclopedia shares detailed usage tutorials for Alibaba Cloud servers:

Table of contents

Alibaba Cloud Server Usage Tutorial

1: Purchase an Alibaba Cloud server ECS

2: Cloud server configuration selection

Three: Install the web environment required for the website on the cloud server

1. Log in to the cloud server via SSH connection

2. Execute the installation command of Pagoda Panel

3. Pagoda panel login address, account number and password

Four: Open the port in the cloud server security group

Five: Log in to the Pagoda management address and install the LNMP environment

Six: Add a site on the pagoda panel

Seven: Download the website program installation package

Eight: Upload the website program installation package to the root directory

Nine: The domain name is resolved to your cloud server’s public IP address.

Ten: Install the WordPress program


Alibaba Cloud Server Usage Tutorial

Alibaba Cloud servers are divided into cloud server ECS and lightweight application servers. If it is a lightweight application server, you can refer to this article: Alibaba Cloud lightweight application server usage tutorial (from purchase configuration, connection to website online)  This article uses cloud server ECS as the For example, let’s talk in detail about cloud server configuration selection, money-saving purchasing methods, building a website LNMP environment and the whole process of website launch. Alibaba Cloud server is very simple to use. Follow A Xiaoyun’s step-by-step configuration and the whole process of website launch in ten minutes:

1: Purchase an Alibaba Cloud server ECS

If you have already purchased the cloud server, you can skip this step. How to buy Alibaba Cloud server? First, you need to register an Alibaba Cloud account , and then complete the real-name authentication of the account .

How to save money to buy Alibaba Cloud servers? Purchase at the official special offer: aliyunbaike.com/go/aliyun  cloud server price is very cheap, the event is open as shown below:

Alibaba Cloud Server Discount Price

Alibaba Cloud Server

Alibaba Cloud lightweight 2-core 2G3M bandwidth is 108 yuan per year, 2-core 4G4M server is 297 yuan per year, ECS cloud server e-series 2-core 2G configuration is 182 yuan per year, 2-core 4G configuration is 365 yuan per year, 2-core 8G configuration is 522 Yuan Year, detailed reference: https://www.aliyunbaike.com/jiage/

2: Cloud server configuration selection

How to choose the CPU memory configuration of Alibaba Cloud Server? Axiaoyun recommends choosing a cloud server configuration based on the actual application. If it is used by individual developers, generally a 2-core 2G configuration is enough. If it is an enterprise-level application, it is recommended to start with 4-core 8G. For details, refer to: Alibaba Cloud Server Configuration Selection Plan

For example, when Ah Xiaoyun used it to build a website, the configuration he chose was 2 cores and 2G. After the website was connected to object storage OSS and CDN , the daily IP traffic was about 2,000, which is completely sufficient.

To sum up, choose a special price cloud server in the Alibaba Cloud special offer event, select the CPU memory configuration according to the actual application, then submit the order payment, wait 1 to 3 minutes, the Alibaba Cloud system will automatically create a server under your Alibaba Cloud account Cloud Server.

Three: Install the web environment required for the website on the cloud server

Cloud server operating systems are divided into Windows and Linux. The Linux system takes up less system resources than win. A Xiaoyun takes the Linux operating system as an example to explain in detail the cloud server installation Web environment tutorial.

In this article, Alibaba Cloud Encyclopedia takes the installation of a WordPress blog website as an example. The required web environment for this program is LNMP or LAMP. It is too troublesome to install the environment step by step manually. It is better to install the panel directly. In this article, Ah Xiaoyun first installs the Pagoda Linux panel for the cloud server , then installs the LNMP environment on the Pagoda panel, and finally creates a new site on the Pagoda panel.

1. Log in to the cloud server via SSH connection

Alibaba Cloud servers support a variety of remote connection methods. You can use Alibaba Cloud's own Workbench remote connection method, or you can use third-party SSH remote connection software such as PuTTY, Xshell, etc. Alibaba Cloud Server Network uses Alibaba Cloud's own remote connection method:

First log in to the cloud server ECS management console , go to [Instances and Images] >> [Instances] on the left column, find the target cloud server ECS instance, and then click [Remote Connection] on the right, as shown below:

Alibaba Cloud server remote connection

Alibaba Cloud server remote connection

You can choose SSH password login or key certificate login. If you do not have a password, you can reset it .

2. Execute the installation command of Pagoda Panel

After logging in to your cloud server, execute the Pagoda panel installation command. The CentOS operating system used by Alibaba Cloud Server Network is as follows:

yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec

For other operating systems, please go to the Pagoda Panel official website to view the installation instructions.

After executing the Pagoda Linux panel installation command, the following prompt will appear:

Do you want to install Bt-Panel to the /www directory now?(y/n): y

Keep the default and reply with the letter "y", as shown below:

Do you want to install Bt-Panel to the /www directory now?(y/n)

Do you want to install Bt-Panel to the /www directory now?(y/n)

Then press Enter, the system will automatically install, and the installation will be completed automatically in about 1 minute.

3. Pagoda panel login address, account number and password

After the automatic installation of the Pagoda panel is completed, the Pagoda background login address, username and password will be displayed, as shown below:

Pagoda panel address, account and password

Pagoda panel address, account and password

As shown in the figure above, save the above information. If you log in to the Pagoda backend through the external network, use the external network panel address. If you log in to the Pagoda on the cloud server, you can use the intranet panel address. From the login address in the picture above, we can see that the current port number that the Pagoda Panel relies on is 39118. Next, A Xiaoyun will help everyone open the corresponding port number.

Four: Open the port in the cloud server security group

For security reasons, Alibaba Cloud server ports are in whitelist mode by default. Some ports are closed by default and need to be opened manually. The cloud server ECS opens the port in the security group, and the lightweight application server opens the port in the firewall. After installing the Pagoda Panel on the cloud server, you need to open the port number that the Pagoda Panel relies on, otherwise the panel cannot be used normally. In the past, the default port number of the Pagoda Panel was 8888. For security reasons, the Pagoda Panel will generate a port number immediately after the security is completed. ,As shown in FIG.
1. Log in to the Alibaba Cloud ECS cloud server management console

2. Find [Instances and Images] >> [Instances] in the left column, find the target ECS instance, and click the instance ID to enter the instance details page.

3. Switch to the [Security Group] page and click [Configure Rules] on the right, as shown below:

Alibaba Cloud server security group configuration rules

Alibaba Cloud server security group configuration rules

4. Click [Manual Add] in the inbound direction, enter [39118/39118] for the port range, and select [0.0.0.0/0] for the authorization object. The following figure takes the opening of port 80 as an example. Let's take a look at it:

Alibaba Cloud server security group opens port

Alibaba Cloud server security group opens port

In the same way, to determine which port number to open, enter the corresponding port number in the port range. Save it at the end and it will take effect without restarting.

Five: Log in to the Pagoda management address and install the LNMP environment

After the port number is opened, you can use your account password and login address to log in to the Pagoda panel. Paste the external network panel address of the Pagoda Panel in the browser, enter your account number and password, and log in to the Pagoda Panel management backend. When logging in for the first time, you need to check the box to agree to the agreement, and then enter the panel. Then bind the Pagoda account. If you have a Pagoda account, just enter your mobile phone number and password to log in. If you don’t have a Baota account, just click to register a Baota account for free .

Then the recommended installation package window will pop up, select LNMP (recommended), and click [One-click installation], as shown below:

Pagoda panel installation LNMP environment

Pagoda panel installation LNMP environment


A message box will pop up to show the installation progress. Wait about 5 minutes for the web environment required by the WordPress blog program to be automatically installed.

Six: Add a site on the pagoda panel

Log in to the Pagoda panel management background, click [Website]--[Add Site] on the left column, as shown below:

Alibaba Cloud Server Add Site

Alibaba Cloud Server Add Site

  • Domain name: Enter the domain name. Both www and domain names without www can be filled in.
  • Root directory: The root directory will be automatically generated based on the domain name, and the default is enough
  • FTP account: If you need FTP, choose to create it. The system will automatically generate an FTP account and password, or you can customize the settings yourself.
  • Database: Select Create MySQL, and the system will automatically create a database account and password.

Then click [Submit], and the site will be successfully created, and the FTP and database account information will be displayed.

Seven: Download the website program installation package

In this article, A Xiaoyun takes the installation of WordPress as an example. Download the WP program installation package from the WordPress official website. Students who have already downloaded it can skip this step.

Eight: Upload the website program installation package to the root directory

Click [File]--[Upload] in the left column to upload your WordPress installation package program to the root directory of the website. The website root directory path is: /www/wwwroot/你的域名, as shown below:

WordPress installer uploaded to website root directory

WordPress installer uploaded to website root directory

Nine: The domain name is resolved to your cloud server’s public IP address.

At the domain name registrar, resolve your domain name to the public IP address of your cloud server. The resolution tutorial is based on the domain name registrar's documentation. Reference:

Ten: Install the WordPress program

After the domain name resolution to the cloud server takes effect, enter your domain name in the browser and open the website. You will see the familiar WordPress installation interface, as shown below:

WordPress installation

WordPress installation


As shown above, click to start now!
Fill in the database name, database user name and password information. This information is the user name and password information generated when adding the site on the Pagoda panel in step three. This step fills in the database information. Click Submit after completing the filling.

After the database information is passed, then fill in the WordPress site title, username, password and email information, and then click Install WordPress. Tip: Success! WordPress installation is complete. Thanks!

At this point, the tutorial on purchasing Alibaba Cloud servers, selecting Alibaba Cloud server configurations, building websites on cloud servers, installing website programs, and continuing until the website goes online is complete. For more information about Alibaba Cloud servers, you can refer to Alibaba Cloud Encyclopedia aliyunbaike.com's article about cloud servers. Detailed instructions for use.

Guess you like

Origin blog.csdn.net/aliyunbaike/article/details/133355520