1.下载数据库&适配文件;
mkdir -p /opt/software/openGauss
chmod 755 -R /opt/software
cd /opt/software/openGauss
下载openGauss-1.1.0-UnionTech-64bit-all.tar.gz并解压:
tar -xf openGauss-1.1.0-UnionTech-64bit-all.tar.gz
tar -xf openGauss-1.1.0-UnionTech-64bit-om.tar.gz
useradd omm
groupadd dbgrp
执行passwd omm 设置omm的密码
mkdir -p /opt/huawei/install/
chmod -R 777 /opt/huawei/
chown omm.dbgrp -R /opt/huawei/
chown omm.dbgrp -R /opt/software/
chmod 755 -R /opt/software/
mkdir -p /opt/huawei/install/
chmod -R 777 /opt/huawei/
userdel -fr omm
cd /opt/software/openGauss/script
sh -x auto_config.sh
修改/opt/software/openGauss/clusterconfig.xml中的ip为本机ip
2.安装
./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/clusterconfig.xml
依次输入安装密码,注意密码中不能含有#$等特殊字符,可采用示例密码“Deepin12”
[size=10.5000pt]
chown omm.dbgrp -R /opt/software/
chmod 755 -R /opt/software/
su - omm
cd /opt/software/openGauss/script
./gs_install -X /opt/software/openGauss/clusterconfig.xml
3.连接数据库
gsql -d postgres -p 26000