单节点服务器安装

  1. 创建用户组dbgroup。

1. groupadd dbgroup 2. 创建用户组dbgroup下的普通用户omm,并设置普通用户omm的密码,密码建议设置为omm@123。

1. useradd -g dbgroup omm 2. passwd omm 3. 使用omm用户登录到openGauss包安装的主机,解压openGauss压缩包到安装目录(假定安装目录为/opt/software/openGauss,请用实际值替换)。

1. tar -jxf openGauss-x.x.x-操作系统-64bit.tar.bz2 -C /opt/software/openGauss 4. 假定解压包的路径为/opt/software/openGauss,进入解压后目录下的simpleInstall。

1. cd /opt/software/openGauss/simpleInstall 5. 执行install.sh脚本安装openGauss。

1. sh install.sh -w xxxx

上述命令中,-w是指初始化数据库密码(gs_initdb指定),安全需要必须设置。 6. 安装执行完成后,使用ps和gs_ctl查看进程是否正常。

1. ps ux | grep gaussdb 2. gs_ctl query -D /opt/software/openGauss/data/single_node

执行ps命令,显示类似如下信息:

1. omm 24209 11.9 1.0 1852000 355816 pts/0 Sl 01:54 0:33 /opt/software/openGauss/bin/gaussdb -D /opt/software/openGauss/single_node 2. omm 20377 0.0 0.0 119880 1216 pts/0 S+ 15:37 0:00 grep --color=auto gaussdb

执行gs_ctl命令,显示类似如下信息:

``` 1. gs_ctl query ,datadir is /opt/software/openGauss/data/single_node 2. HA state: 3. local_role : Normal 4. static_connections : 0 5. db_state : Normal 6. detail_information : Normal

  1. Senders info:
  2. No information

  3. Receiver info:

  4. No information ```