Help Center/ Elastic Cloud Server/ Best Practices/ Best Practices Summary
Updated on 2024-11-04 GMT+08:00

Best Practices Summary

This section describes common application scenarios of Elastic Cloud Server (ECS) and provides solution details and an operation guide for each scenario, so you can easily deploy services using ECS.

Best Practices for Using ECSs

Table 1 Best practices

Category

Scenario

Reference

Description

Environment setup

Setting up an LNMP environment

Manually Deploying LNMP (CentOS 7.2)

An ECS running CentOS 7.2 64-bit is used as an example to describe how to set up an LNMP environment.

Manually Deploying LNMP (CentOS 8.0)

An ECS running CentOS 8.0 64-bit is used as an example to describe how to set up an LNMP environment.

Manually Deploying LNMP (Ubuntu 20.04)

An ECS running Ubuntu 20.04 64-bit is used as an example to describe how to set up an LNMP environment.

Manually Deploying LNMP (Huawei Cloud EulerOS 2.0)

An ECS running Huawei Cloud EulerOS 2.0 64-bit is used as an example to describe how to set up an LNMP environment.

Setting up an LAMP environment

Manually Deploying LAMP (CentOS 7.8 PHP 7.0)

An ECS running CentOS 7.8 64-bit is used as an example to describe how to set up an LAMP environment.

Setting up a Java web environment

Setting Up Tomcat-based Java Web Environment (CentOS 7.4)

An ECS running CentOS 7.4 64-bit is used as an example to describe how to set up a Java Web environment.

Setting Up Tomcat-based Java Web Environment (Huawei Cloud EulerOS 2.0)

An ECS running Huawei Cloud EulerOS 2.0 64-bit is used as an example to describe how to set up a Java Web environment.

Setting up a Node.js environment

Manually Deploying Node.js

An ECS running CentOS 7.2 64-bit is used as an example to describe how to set up a Node.js environment.

Website setup

Setting up a WordPress website

Setting Up a WordPress Website (Linux)

An ECS running CentOS 7.2 64-bit is used as an example to describe how to set up a WordPress website.

Setting up a Discuz forum

Setting Up a Discuz Forum

An ECS running CentOS is used as an example to describe how to set up a Discuz forum.

Setting up a Magento e-commerce website

Manually Setting Up a Magento E-Commerce Website (Linux)

An ECS running CentOS 7.2 64-bit is used as an example to describe how to set up a Magento e-commerce website.

Deploying a Ghost blog

Manually Deploying a Ghost Blog (Ubuntu 20.04)

An ECS running Ubuntu 20.04 64-bit is used as an example to describe how to deploy a Ghost blog.

Application setup

Setting up an FTP site

Setting Up an FTP Site (Windows 2012)

An ECS running Windows Server 2012 Datacenter 64-bit is used as an example to describe how to set up an FTP site.

Setting Up an FTP Site (Windows 2019)

An ECS running Windows Server 2019 Datacenter 64-bit is used as an example to describe how to set up an FTP site.

Setting Up an FTP Site (Linux)

An ECS running CentOS 7.2 64-bit is used as an example to describe how to set up an FTP website.

Building Microsoft SharePoint Server

Building Microsoft SharePoint Server 2016

An ECS running Windows Server 2012 Datacenter 64-bit is used as an example to describe how to build Microsoft SharePoint Server 2016.

Deploying Docker

Manually Deploying Docker (CentOS 7.5)

An ECS running CentOS 7.5 64-bit is used as an example to describe how to deploy Docker.

Deploying an ECS as an official WeChat account server

Deploying an ECS for Handling Text Messages from an Official WeChat Account

An ECS running CentOS 7.4 64-bit is used as an example to describe how to deploy an ECS as an official WeChat account server.

Installing the BT panel

Manually Installing a BT Panel (CentOS 7.2)

An ECS running CentOS 7.2 64-bit is used as an example to describe how to install the BT panel.

Deploying GitLab

Manually Deploying GitLab (CentOS 7.2)

An ECS running CentOS 7.2 64-bit is used as an example to describe how to deploy GitLab.

Deploying RabbitMQ

Manually Deploying RabbitMQ (CentOS 7.4)

An ECS running CentOS 7.4 64-bit is used as an example to describe how to deploy RabbitMQ.

Setting up a ThinkPHP framework

Setting Up a ThinkPHP Framework

An ECS running CentOS 7.2 64-bit is used as an example to describe how to set up a ThinkPHP framework.

Setting up master-slave replication on PostgreSQL

Setting Up Master-Slave Replication on PostgreSQL

An ECS running CentOS 7.6 64-bit is used as an example to describe how to set up master-slave replication on PostgreSQL.

Deploying Jenkins

Installing and Deploying Jenkins on an ECS

An ECS running CentOS 7.6 64-bit is used as an example to describe how to deploy Jenkins.

Configuring auditd

Using auditd to Record File Changes (Linux)

An ECS running CentOS 7.4 64-bit is used as an example to describe how to install and configure auditd.

Restoring data using Extundelete quickly

Restoring Accidentally Deleted Data Using Extundelete (Linux)

An ECS running CentOS 7.5 64-bit is used as an example to describe how to use the open-source tool Extundelete to quickly restore accidentally deleted data.

ECS security

Enhancing security for SSH logins to Linux ECSs

Enhancing Security for SSH Logins to Linux ECSs

An ECS running CentOS 7.6 64-bit is used as an example to describe how to enhance security for SSH logins.

Setting up a high-availability web cluster

Using a Virtual IP Address and Keepalived to Set Up a High-Availability Web Cluster

An ECS running CentOS 7.8 64-bit is used as an example to describe how to use a virtual IP address and Keepalived to set up a high-availability web cluster.

Cloud server migration

Migrating servers to the cloud

Migrating Servers to the Cloud

It describes how to use Server Migration Service (SMS) and image import to migrate applications and data from your existing servers to Huawei Cloud.

Migrating ECSs across accounts and regions through image replication

Migrating ECSs Across Accounts and Regions Through Image Replication

It describes how to migrate ECSs between Huawei Cloud accounts in different regions.

Other

Accessing OBS from an ECS over an intranet

Accessing OBS over Intranet by Using OBS Browser+ on a Windows ECS

It describes how to use OBS Browser+ to access OBS over intranet on a Windows ECS.

Accessing OBS over Intranet by Using obsutil on a Linux ECS

It describes how to use obsutil to access OBS over intranet on a Linux ECS.

Using VNC Viewer to access a Linux ECS

Using VNC Viewer to Access a Linux ECS

Ubuntu 20.04 OS is used as an example to describe how to install VNC Server on a Linux ECS and how to use VNC Viewer to access the ECS.