#openGauss #入门 #安装 #数据库 #开源
知识来源:docs-opengauss.osinfra.cn/zh/
操作步骤
1.使用普通用户登录到openGauss包安装的主机,解压openGauss压缩包到安装目录(假定安装目录为/opt/software/openGauss,请用实际值替换)。
bash复制代码tar -jxf openGauss-x.x.x-openEuler-64bit.tar.bz2 -C /opt/software/openGauss
2.假定解压包的路径为/opt/software/openGauss,进入解压后目录下的simpleInstall。
bash复制代码cd /opt/software/openGauss/simpleInstall
3.执行install.sh脚本安装openGauss。
bash复制代码sh install.sh -w "xxxx" &&source ~/.bashrc
说明:
-w:初始化数据库密码(gs_initdb指定),因安全需要,此项必须设置。
-p:指定openGauss端口号,如不指定,默认为5432。
-h|--help:打印使用说明。
安装后,该数据库部署节点的名称为sgnode(gs_initdb指定)。
执行时,如果出现报错“the maximum number of SEMMNI is not correct, the current SEMMNI is xxx. Please check it.”,请使用有root权限的用户执行如下命令。
sysctl -w kernel.sem="250 85000 250 330"
安装后,数据库目录安装路径/opt/software/openGauss/data/single_node,其中/opt/software/openGauss为解压包路径,data/single_node为新创建的数据库节点目录。
安装完成后,默认生成名称为postgres的数据库。第一次连接数据库时可以连接到此数据库。
#openGauss #入门 #安装 #数据库 #开源