How to Replace Your System with OpenEuler and OpenGauss: A Step‑by‑Step Guide
This tutorial walks you through downloading the OpenEuler ISO, installing the OS on a server or VMware VM, configuring yum sources, installing and configuring the openGauss database, setting up network and firewall, and optionally using Data Studio for visual management, all with detailed commands and screenshots.
System Domestic Replacement Solution OpenEuler+OpenGauss
Company requires domestic replacement of all systems; this guide explores installing the Chinese‑made OS openEuler and the database openGauss on a server or virtual machine (VMware used).
1. ISO download
Download the latest openEuler ISO from the official site.
2. Install OpenEuler
Tip: Run VMware as administrator
Follow the installation screenshots below.
2.1 Install openGauss (method 1)
Make sure network is enabled
Click “Start Installation” and wait for completion.
When the login screen appears, the installation succeeded. Log in with the root account and password.
Successfully entered the system.
3. Related configuration
3.1 Configure yum source
sed -i 's|http://repo.openeuler.org/|https://mirrors.huaweicloud.com/openeuler/|g' /etc/yum.repos.d/openEuler.repo cat /etc/yum.repos.d/openEuler.repoRun the following commands:
yum clean all
yum makecache
yum -y updateOptional (install development tools):
yum -y install gcc gcc-c++ pcre pcre-devel gd-devel openssl openssl-devel zlib zlib-develDisable firewall:
sudo systemctl stop firewalld
sudo systemctl disable firewalld3.2 Install common utilities
yum -y install tar
yum -y install vim
yum -y install htop4. OpenGauss installation and usage
4.1 Manual installation if not selected during OS install
Run: yum -y install opengauss Wait for the installation to finish.
4.2 OpenGauss configuration and usage
Switch to the opengauss user:
su - opengaussCheck the process:
ps ux | grep gaussdbModify postgresql.conf: vim postgresql.conf Set:
listen_addresses = '*'
port = 7654 # adjust as neededModify pg_hba.conf and add a line (see image).
Restart OpenGauss:
cd /usr/local/opengauss/bin
gs_ctl restartChange the password:
ALTER ROLE opengauss PASSWORD 'your_password';Create a new user and grant privileges:
CREATE USER testuser WITH PASSWORD 'your_password';
GRANT ALL PRIVILEGES TO testuser;4.3 OpenGauss visual interface: Data Studio
Download Data Studio from the Huawei Cloud console (requires JDK 1.8+).
Connect using IP address and default port 7654.
Connection successful, you can now use the database.
4.4 OpenGauss code integration (Java)
Repository: https://gitee.com/fengshuq/demo2.git
5. Related issues
1. Ping differences (www.baidu.com)
cd /etc/sysconfig/network-scripts/Edit the file and set ONBOOT=yes to enable the network at boot.
2. Configure static IP for internal server
cd /etc/sysconfig/network-scripts/Further configuration steps are omitted for brevity.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
