CentOS安装openGauss2.0.1 OpenGauss是一个开放源代码的关系数据库管理系统,由木兰松散许可证v2发行。 openGauss内核源于PostgreSQL,深度融合华为在数据库领域多年的经验,不断构建竞争力特征以满足企业级场景需求。
安装前准备:
1、centos7.6 x86 64位,内核修复
2、修改文件打开数量
3、创建普通用户和用户组
4、安装bzip2
2021-4月发布了openGauss安装2.0.1。 这里的centos是7.9
一.安装前准备修改核数1.1
在root上,更改centos内核
按如下方式修改vi /etc/sysctl.conf#内核参数: (默认参数250 32000 32 128 ) kernel.SEM=250640000100025600 sysctl-pcat/proc/sys/kernes
创建名为opengaussgroup的组名为groupadd-g 1001 opengaussgroup # open gauss的用户,然后创建用户组useradd-u 2001-gopengaussgroupops 假设您添加并更改了用户密码(rradd-u2001-gopengausssgroup ),以便在agree123passwd opengauss #中创建文件夹。 mkdir /opt/software/openGauss#具有chown-ropengauss 3360 opengaussgroup/opt/softwarrrouss #权限
显示文件打开数: ulimit -n
初步修正: ulimit -n 65536
预先安装bzip2和依赖关系:
yum -y install bzip2#安装相关软件包yuminstalllibaio-develflexbisonncurses-devel glibc-develpatchredhat-ls B-core readline
reboot二、安装此时,将用户切换为一般用户su opengauss
2.1上传安装软件包使用在1.2节中创建的用户将安装软件包上传到/opt/software/并执行解压缩:
suopengausstar-jxfopengauss-2.0.1-centos-64 bit.tar.bz2-c/opt/software/open gauss 2.2安装执行安装
#查看防火墙状态systemctl status firewalld#防火墙ufwdisablesystemctlstopfirewalld.service CD/opt/software/open gauss simpleinstallshinstall.sh-w agree 123-p 5432 #环境变量echo ' path=/opt/software/open gauss /悲伤导师: 要设置的$ path '/home/open gauss/. bash _ profilesource/home/open gauss/. bash _ profile #连接数据库,密码Agree123 启动/停止管理数据库3.1数据库# GS _ CTL-d/opt/software/open gauss/data/single _ node start #启动open gauss/data/single 在data/single_noderestart#连接数据库gsql-single-node software/open gauss/data/single _ nodev IPG _ HBA.conf #中更改为* listen _ addresses=" * ",以便所有网段连接都可以在IPv4 local connections下添加hostallall0.0.0.0/0MD5VIpoonf 将password_encryption_type更改为0 password _ encryption _ type=0# GS _ CTL-d/opt/software/open gauss/data/#确认密码MD5中是否保存有select rolname,rolpassword from pg_authid; #密码alteruseragreewithencryptedpassword ' lingkang 123456 '; 四.其他说明4.1资料文档构建当前最新版本,说明opengauss 2.0与早期版本兼容。
3359 open gauss.org/zh/news/2021-04-01/2021 04 01.html 3359 open gauss.org/zh/news/2021-04-01/2021 04
硬件和软件要求:
3359 open gauss.org/zh/docs/2.0.1/docs/installation /准备软硬件安装1.html
1、centos 7.6
2、预先安装bzip2 :
yum -y install bzip2
3、opengauss只能安装在普通用户下,所以创建普通用户
非常简单的节点构建教程:
3359 open gauss.org/zh/docs/2.0.1/docs/installation /单节点安装. html
安装完成验证:
3359 open gauss.org/zh/docs/2.0.1/docs/installation /安装验证. html