Alibaba Cloud server construction and Pagoda panel installation (graphic tutorial)

I bought a cloud server at a previous Alibaba Cloud event. I was a little confused when I first got it. Then I collected information, organized notes, and made a simple tutorial on setting up a cloud server.

Installation system: Linux CentOS 8.2 64-bit

1. Change the instance password

ExampleThat is, instance can be understood as an independent computing unit virtualized in cloud computing resources. For example, an ECS instance refers to a cloud server.

1. Enter the Alibaba Cloud homepage and enter the console

2. Find the ecs instance under the cloud server

3. Click Reset Instance Password and try to set a more difficult password.


4. After successful setting, be sure to remember to restart! Only then can it take effect!

2. Set up security group configuration

1. Enter the security group


2. Add security group

The server needs port release, otherwise your port will be inaccessible. Because of security requirements, cloud servers have security groups. Commonly used ports that need to be released:tomcat 8080 port, mysql 3306 port https 443 and 80 port


rule direction: Inbound direction (external access to the server)/outbound direction (server access to the external network).
Authorization policy: Allow/deny; decide whether to allow access to the port or deny it.
priority: For the same port, settings with higher priority will override settings with lower priority.
agreement type: Port protocol type, where you can select the port type and some commonly used ports.
port range:Format: aa/bb, indicating all ports from aa to bb. If it is only a certain port, it is written as aa/aa.
Authorization object: That is, the IP address allowed to be accessed. Format ip/port

Example: If only a certain port (such as 80) of a certain IP (such as 111.111.111.111) is allowed to access the server, then set it to “111.111.111.111/80.”

Example: ifAllow all access, then set to “0.0.0.0/0”
Description: Your own description of this rule, 2-256 characters long, cannot start with http //.

Reference URL:

https://jingyan.baidu.com/article/3c343ff75961344d3679633b.html

3. Remotely connect to Alibaba Cloud server

Several ways to connect to Alibaba Cloud servers remotely (including Windows and Linux systems)

Use PuTTY tool to connect remotely:

1. Open the software and enter the IP of the cloud server and the port number to be entered.

2. Enter account password


Displaying welcome indicates that the remote connection is successful.

Use tools to connect remotely(Video reference tutorial):https://www.bilibili.com/video/BV1MK4y1W7h5

4. Install the pagoda panel

Official installation requirements:

Memory: 512M or more, 768M or more is recommended (the pure panel occupies about 60M of the system’s memory)
Hard disk: more than 100M of available hard disk space (the pure panel takes up about 20M of disk space)
system:CentOS 7.1+ (Ubuntu16.04+, Debian9.0+), and make sure it is a clean system, and Apache/Nginx/php/MySQL from other environments has not been installed (existing environments cannot be installed)

The following error message appears during installation:

Found the reason for the error:
On January 31, 2022, the CentOS team removed all CentOS 8 packages from the official image. To continue using the CentOS 8 source that continues to use the default configuration, you must switch the source. The official document link is as follows:

https://help.aliyun.com/document_detail/405635.html

CentOS installation pagoda

1. VNC remote connection to cloud server

2. After logging in to the server, execute the following command to install Pagoda:

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

A pop-up will appear during the installation process. Enter y and follow the prompts to continue the installation.

The installation commands for different systems are different. The details can be found inPagoda official websiteCheck

3. After the pagoda panel is successfully installed, as shown in the figure below:

The above three are very importantparameter, must remember!

4. Open the pagoda link above, enter your username and password, and enter the pagoda panel:

LNMP: Linux + Nginx + Mysql + PHP
LAMP: Linux + Apache + Mysql + PHP

The difference between the two: If there is more static content, it is recommended to choose Nginx, which takes up less memory. If there is a lot of dynamic content, it is recommended to choose Apache, which is more stable.

5. You can modify the path to log in to the pagoda as well as the user name and password in the panel settings.


6. Use the web page in the terminal to connect via ssh.

The connection is successful as shown below:

If it shows that the connection failed, the solution is:
On the command line enter:pip install paramiko==2.0.2, install the relevant tools, and then restart the pagoda:bt reload

7. If you haven’t bought a domain name yet, simply test it and build a website first.



8. Set the default site to the new test site


9. After the creation is successful, you can access the site you just created through IP.

Related Posts

Troubleshooting ideas and solutions to the problem of high CPU usage in Linux systems

The first Qt program I ran on a Linux development board

vscode configure remote ssh

[Linux] Common instructions (2)

69.Qt implements two-way authentication between Https ssl certificate and intranet server IP

POST and GET request methods for Postman interface testing

Step-by-step tutorial on writing automated installation scripts for Oracle11g under Linux

VMware virtual machine installs the original MAC OS system and easily experiences the Apple operating system

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*