Help Center/ Elastic Cloud Server/ Best Practices/ Summary of ECS Best Practices
Updated on 2026-01-09 GMT+08:00

Summary of ECS Best Practices

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

Best Practices for Using ECSs

Table 1 Best Practices for Using ECSs

Category

Scenario

Reference

Description

Selection and Configuration

Configuring an ECS

Configuring an ECS

This practice describes how to configure an ECS after purchasing it.

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.

Setting up a 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 a LAMP environment.

Manually Deploying LAMP (Ubuntu)

An ECS running Ubuntu is used as an example to describe how to set up a LAMP environment.

Setting up a Java web environment

Setting Up a 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 a Python environment

Setting Up a Python Environment

This practice describes how to set up a Python environment manually on an ECS.

Setting up a Hadoop environment

Manually Deploying Hadoop (Linux)

An ECS running CentOS is used as an example to describe how to set up a Hadoop 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

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.

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 (CentOS 7.2)

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

Setting Up an FTP Site (Ubuntu)

An ECS running Ubuntu 22.04 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 a 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 (Ubuntu 20.04)

An ECS running Ubuntu 20.04 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.

Deploying and using SVN

Deploying and Using SVN

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

Setting up primary-secondary replication on PostgreSQL

Setting Up Primary-Secondary Replication on PostgreSQL

An ECS running CentOS 7.6 64-bit is used as an example to describe how to set up primary-secondary 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

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.

Creating an image using Packer

Creating a Private Image Using Packer

This practice describes how to use Packer to create an Ubuntu 22.04 Server 64-bit private image on a CentOS 8.2 64-bit ECS.

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.

ECS migration

Migrating servers to the cloud

Migrating Servers to the Cloud

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

Other

Accessing OBS from an ECS over an intranet

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

This practice 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

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

Using VNC Viewer to access an 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.