openGauss极简版安装记录(部分)
操作系统:openEluer 22.03
已赋予nom用户,安装解压所有路径的权限
在这里插入图片描述
开始安装,报错(若step前几步有其他错误,看文章尾)
gs_initdb: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory
推测是openEluer版本过高,搜索了下lib里面该文件
确实如此
需要做软连接
ln -s libreadline.so.8 libreadline.so.7
再次安装
成功
配置PATH ,并生效
查看数据库状态
打开数据库连接
并再次查看状态
进入数据库
####################
中间遇到不少问题,多数与openEluer操作系统的原生配置有关
1.openEluer的普通用户可能会有:bash: ulimit: open files: cannot modify limit: 不允许的操作
因为对于普通用户而言,普通用户在使用ulimit -n xxx,设置描述符大小的时候,这个xxx的大小不能超过/etc/security/limits.conf的大小,否则就会报错
会导致安装出错,没法正确修改配置。
解决方案:1、修改/etc/security/limits.conf,尾部添加值更大的描述符
nom soft core 102400
nom hard core 102400
nom soft nofile 819200
nom hard nofile 819200
nom soft nproc 65535
nom hard nproc 65535
nom soft stack 65535
nom hard stack 65535
nom soft memlock 4000000
nom hard memlock 400000
Or 2、找到普通用户登录执行的脚本,把ulimit -n xxx命令注释。
2.openGauss安装只能在普通用户shell下进行,以及需要手动修改安装路径操作权限
3.openEluer 22.03ETS里面的库文件libreadline为libreadline.so.8,而最新的openGauss需要libreadline.so.7,需要手动建立软连接
4.安全设置(详见官方文档),需要关闭防火墙,设置时区,关闭swap交换内存
普通用户缺少的一些便利的配置
####为普通用户添加到sudoers
添加su的权限
###############