安装单机版openGauss

环境

下载python3.6.8
首先linux中的版本是默认的2.7.5.要下载3.6.8,需要用到wget,

openGauss数据库基本操作(超详细)

安装过程

3.6.1,测试过

3.6.1,有pip

Vmware 16虚拟机环境安装运行于openEuler20.03上的openGauss 3.0(保姆级教程)
如果在使用-bash: wget: 未找到命令

yum -y install wget

查看linux中的centos版本

[root@localhost ~]# cat /etc/centos-release
CentOS Linux release 7.6.1810 (Core) 
vi auto_install.sh
复制进去

运行
sh auto_install.sh

在这里插入图片描述

白名单

在这里插入图片描述

在这里插入图片描述

查看ip地址

在这里插入图片描述

问题

解决python版本之间的问题

在这里插入图片描述

在这里插入图片描述

yum指向2.7的编译

https://www.e-learn.cn/topic/4102028

问题1:执行install.sh脚本安装openGauss出现以下错误
On systemwide basis, the maximum number of SEMMNI is not correct. the current SEMMNI value is: 128. Please check it.

解决:在/etc/sysctl.conf中加入语句kernel.sem = 250 32000 100 999,然后执行sysctl -p

安装

opengauss官方2.0.0
轻量版3.0.0

https://www.csdn.net/tags/NtzacgxsODQzMzItYmxvZwO0O0OO0O0O.html

提示:No package gs_ctl available. Error: Nothing to do

这是yum源有问题,修改一下即可。

omm用户命令hxl123456

sh install.sh -w gauss@123 -p 26000

安装的文章
本地安装单机版openGauss并使用DataStudio工具连接使用

在这里插入图片描述

启动数据库

gs_ctl start -D /opt/software/openGauss/data

[root@localhost ~]# su - omm
Last login: Fri Jul  1 15:01:10 CST 2022 on pts/0
-bash: ulimit: open files: cannot modify limit: Operation not permitted


查看端口
[omm@localhost ~]$ cat /opt/software/openGauss/data/single_node/postgresql.conf |grep port

启动数据库
[omm@localhost ~]$ gs_ctl start -D $GAUSSHOME/data/single_node -Z single_node

查看是否启动
[omm@localhost ~]$ ps -ef |grep gauss
omm      105490      1  4 15:22 ?        00:00:00 /opt/software/openGauss/bin/gaussdb -D /opt/software/openGauss/data/single_node
omm      105865  97980  0 15:22 pts/2    00:00:00 grep --color=auto gauss

运行数据库
[omm@localhost ~]$ gsql -d opengauss -p 26000 -U opengauss -W Gauss_234  -r
gsql ((openGauss 3.0.0 build 02c14696) compiled at 2022-04-01 18:12:34 commit 0 last mr  )
Non-SSL connection (SSL connection is recommended when requiring high-security)
Type "help" for help.



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

秦 羽

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值