Starting Cloud Server

12006

1. Purchasing a Server

We can purchase cloud servers through cloud service providers. In this course, we recommend using Alibaba Cloud or Tencent Cloud. Before purchasing a cloud server, you need to apply for an account on Alibaba Cloud or Tencent Cloud, configure a payment method, and complete personal real-name authentication. For specific operations in this part, you can refer to the official documentation of Alibaba Cloud and Tencent Cloud. The document links are in the reference materials for this lesson.

Next, you can start purchasing servers on Alibaba Cloud or Tencent Cloud. You can refer to the official documentation for this step:

When purchasing a server, consider the following points:

  1. Purpose: Determine the main function of the server.
  2. Hardware Configuration: Choose hardware suitable for the intended use.
  3. Hardware Quality: Select high-quality hardware with guarantees.
  4. Data Center Environment: Consider the environmental requirements for the server's location.
  5. Price: Take into account the price and subsequent maintenance costs.
  6. Remote Management: Choose a server that supports remote management.

In this course, the server system should select the Debian 11.7 image. Other configuration recommendations are as follows:

  • CPU: 2 cores
  • Memory: 4GB
  • Disk Storage: 20G

The server purchased through the provider will automatically install the operating system. Once the installation is complete, you will see this server in the server list on the console.

2. Configuring the Provider's Firewall

To ensure network security, the cloud servers we purchase will be protected by the provider's firewall. A firewall is a security system that monitors and controls network traffic based on a set of security rules, blocking unauthorized data flows to prevent the server from being attacked. Therefore, before using the cloud server, we generally need to configure security rules on the firewall. A security rule typically includes the source IP address of the communication, destination, service type corresponding port number and protocol, as well as instructions to allow or deny.

On Alibaba Cloud and Tencent Cloud, the firewall generally does not restrict the outbound data flow of cloud servers but will default to deny inbound data flow to the cloud server. Therefore, we need to open the following common ports:

  • SSH port (default 22)
  • HTTP port (default 80)
  • HTTPS port (default 443)
  • Jianghu Panel port (default 10744)
  • MySQL database port (default 33067)

You can refer to the official documentation for this step:

3. Starting and Logging into the Cloud Server

After starting the server in the console, you can log into the cloud server. There are several login methods available:

Login through the provider's console:

  • Alibaba Cloud: On the server list page, select the server and click Connect Console
  • Tencent Cloud: In the corresponding record in the server list, click Login

Login via SSH remote connection:

Use WindTerm or another SSH client to connect to the server. You can find the server's public IP, account password, and other information in the provider's server configuration interface.

4. Installing and Configuring Jianghu Panel

After logging into the cloud server, the next step is to install and configure the Jianghu Panel:

  1. Install Jianghu Panel (Reference: https://cn.openjianghu.org/doc/page/article/10086)
  2. Access Jianghu Panel: In the browser, enter the address http://<Server Public IP>:10744/<Secure Entry> to open the Jianghu Panel on the server.
  3. Once in the Jianghu Panel, install common plugins with one click.
  4. Go to the "Panel Settings" page in the Jianghu Panel, set the server IP to the IP provided by the provider, and enable SSL for HTTPS access.

Note: The "firewall" of the server provider and the "security" configuration of the Jianghu Panel must both have port 10744 open to access the Jianghu Panel normally.

5. Connecting to the Server Database

After completing the Jianghu Panel, we can try to connect to the MySQL database of the cloud server using Navicat on our local computer:

  1. After entering the Jianghu Panel, click on the left column "MySQL" to pop up the MySQL configuration page.
  2. Click "Management List," then click "root password" to view the root password.
  3. Open the Navicat software and go to the database connection page. On the left side of the page, select "New Connection," then "MySQL."
  4. Fill in the database connection information on the new connection page, including: connection name, hostname/IP address, port number (default 33067), username, and password. The server IP address can be found in the provider's server configuration interface.
  5. After filling in the database connection information, click the "Test Connection" button to test. If the connection is successful, a "Connection Successful" message will be displayed. If the connection fails, an error message will be shown, and you can adjust the connection information or check if the database service is running normally based on the error message.
  6. After successfully testing the connection, click the "OK" button to save the connection information. You can then access the database through Navicat.

Note: The "firewall" of the server provider and the "security" configuration of the Jianghu Panel must both have port 33067 open to connect to the database normally.

Reference Materials

  1. Official documentation for registering accounts and configuring payment methods on Alibaba Cloud and Tencent Cloud:
  1. Official documentation for managing security groups on Alibaba Cloud and Tencent Cloud: