Preconditions:
The creation of user groups and ordinary users has been completed.
All server operating systems and networks are up and running.
Ordinary users must have read, write, and execute permissions for the database package decompression path and installation path, and the installation path must be empty.
Ordinary users have execution rights to the downloaded openGauss compressed package.
Before installation, please check whether all ports in the specified openGauss port matrix are occupied. If they are occupied, please change the port or stop the current process of using the port. For the port number, please refer to the parameter description in step 3 below.
Operation steps:
Step 1: Log in to the host where the package is installed as a common user, and decompress the openGauss compressed package to the installation directory.
tar -jxf openGauss-xxx-openEuler-64bit.tar.bz2 -C /opt/software/openGauss
Step 2: Assuming the path of the decompressed package is /opt/software/openGauss, enter simpleInstall in the decompressed directory.
cd /opt/software/openGauss/simpleInstall
Step 3: Execute the install.sh script to install openGauss.
sh install.sh -w xxxx --multinode
Step 4: After the installation is completed, use ps and gs_ctl to check whether the process is normal.
Run the ps command to display the following information:
`>> ps ux | grep gaussdb
omm 4879 11.8 1.1 2082452 373832 pts/0 Sl 14:26 8:29 /opt/software/openGauss/bin/gaussdb -D /opt/software/openGauss/data/master -M primary
omm 5083 1.1 0.9 1819988 327200 pts/0 Sl 14:26 0:49 /opt/software/openGauss/bin/gaussdb -D /opt/software/openGauss/data/slave -M standby
omm 20377 0.0 0.0 119880 1216 pts/0 S+ 15:37 0:00 grep --color=auto gaussdb`
Execute the gs_ctl command to display the type as shown on the right:
`>> gs_ctl query -D /opt/software/openGauss/data/master
gs_ctl query ,datadir is /opt/software/openGauss/data/master
HA state:
local_role : Primary
static_connections : 1
db_state : Normal
detail_information : Normal
Senders info:
sender_pid : 5165
local_role : Primary
peer_role : Standby
peer_state : Normal
state : Streaming
sender_sent_location : 0/4005148
sender_write_location : 0/4005148
sender_flush_location : 0/4005148
sender_replay_location : 0/4005148
receiver_received_location : 0/4005148
receiver_write_location : 0/4005148
receiver_flush_location : 0/4005148
receiver_replay_location : 0/4005148
sync_percent : 100%
sync_state : Sync
sync_priority : 1
sync_most_available : Off
channel : 10.244.44.52:27001-->10.244.44.52:35912
Receiver info:
No information`
Top comments (0)