OpenGuass under Ubuntu_22.04 install tutorial

server/2024/10/19 16:36:43/

今天开始短学期课程:数据库课程设计。今天9点左右在SL1108开课,听陈老师讲授了本次短学期课程的要求以及任务安排,随后讲解了国产数据库的三层架构的逻辑。配置了大半天才弄好,放一张成功的图片,下面开始记录成功的步骤:

My operator system is Ubuntu_22.04.

procedures

 essenital dependencies

sudo apt update
sudo apt install -y gcc g++ make cmake libaio-dev libboost-dev bison flex zlib1g-dev libcurl4-openssl-dev

 personal usage for learning version installation:

sudo wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/3.0.5/x86/openGauss-3.0.5-CentOS-64bit.tar.bz2

2.sudo tar -xvjf openGauss-3.0.5-CentOS-64bit.tar.bz2

3.Find the install.sh file   --- a file guiding you finish installing.

4.bash install.sh -w "xxxx (your pswd)" && source ~/.bashrc  (CentOS is sh, a little different!) (The "install.sh" file would guide you finish the installation.)

5.gsql -d postgres -p 5432 -r

Problems during Step 4:

[step 3]: change_gausshome_owner:

chmod: changing permissions of '/db/software/openGauss': Operation not permitted  

=>  solution

sudo chown -R $(whoami):$(whoami) /db/software/openGausssudo chmod -R u+rwx /db/software/openGauss

[step 6]: init datanode

/dbopg/software/openGauss/bin/gaussdb: /lib/x86_64-linux-gnu/libssl.so.10: version `libssl.so.10' not found (required by /dbopg/software/openGauss/lib/libeSDKOBS.so)

/dbopg/software/openGauss/bin/gaussdb: /lib/x86_64-linux-gnu/libcrypto.so.10: version `libcrypto.so.10' not found (required by /dbopg/software/openGauss/lib/libeSDKOBS.so)

no data was returned by command ""/dbopg/software/openGauss/bin/gaussdb" -V"

The program "gaussdb" is needed by gs_initdb but was not found in the

same directory as "/dbopg/software/openGauss/bin/gs_initdb".

Check your installation.

The symlinks you've created for libssl.so.10 and libcrypto.so.10 are pointing to libssl.so.1.1 and libcrypto.so.1.1, respectively. This is the root of the issue, as libssl.so.1.1 and libcrypto.so.1.1 are not compatible with what openGauss is expecting. The software specifically requires libssl.so.10 and libcrypto.so.10, which correspond to an older version of OpenSSL (1.0.x).

 => solution for my issue

 

sudo rm /usr/lib/x86_64-linux-gnu/libssl.so.10sudo rm /usr/lib/x86_64-linux-gnu/libcrypto.so.10
sudo wget https://mirrors.aliyun.com/centos/7/os/x86_64/Packages/openssl-libs-1.0.2k-19.el7.x86_64.rpm
sudo find / -name "libssl.so.10" 2>/dev/nullsudo find / -name "libcrypto.so.10" 2>/dev/null

output: /usr/lib64/libssl.so.10

             /usr/lib64/libcrypto.so.10 

sudo ln -s /usr/lib64/libssl.so.10 /usr/lib/x86_64-linux-gnu/libssl.so.10sudo ln -s /usr/lib64/libcrypto.so.10 /usr/lib/x86_64-linux-gnu/libcrypto.so.10sudo ldconfig

Avoid Warnings:

export GAUSSLOG=/db/software/openGauss/logsmkdir -p $GAUSSLOGsudo mkdir -p /var/lib/opengauss/coresudo chmod 777 /var/lib/opengauss/coreexport GAUSS_CORE_PATH=/var/lib/opengauss/coreecho 'export GAUSSLOG=/db/software/openGauss/logs' >> ~/.bashrcecho 'export GAUSS_CORE_PATH=/var/lib/opengauss/core' >> ~/.bashrcsource ~/.bashrc

Tomorrow Start

1. start the server

gs_ctl start -D /db/software/openGauss/data/single_node

2. connect 

gsql -d postgres -p 5432 -r

check the sever listening wheter 5432

sudo netstat -tuln | grep 5432

http://www.ppmy.cn/server/108254.html

相关文章

okhttp异步请求连接阻塞问题排查

表现: 使用okhttp请求外部大模型接口时,当并发在2-5左右,出现请求被阻塞在建立http连接之前,阻塞时间超长(>20s,从日志看有160s存在)。但是httpconfig的connTimeout时间配置为100s&#xff…

git命令

git checkout -b new-feature [从更新后的master分支创建新的分支] git pull origin master [同步远端master分支,将远程主机的最新内容拉下来后直接合并] [git pull git fetch git merge] git checkout master [切换分支] git fetch origin [更新所有远端分支…

Android原生JobSchedulerContext内存泄漏导致设备重启的现象

一、现象:原生JobSchedulerContext内存泄漏占比 JobServiceContext内存泄露导致ServiceDispatcher也跟着一起内存堆积 二、现象日志: 内存泄漏的日志关键信息:ActivityManager: Unbind failed: could not find connection for android.app.…

【C/C++】C++类与对象基本概念(抽象封装、类的定义与使用、构造函数、析构函数、静态成员、友元)

目录 七、类与对象基本概念7.1 抽象7.2 类的定义与声明7.3 访问控制7.4 类的实现与使用7.5 对象指针、this指针与对象引用7.6 构造函数7.7 析构函数7.8 拷贝构造函数7.9 类类型作为函数参数7.10 对象数组7.11 静态成员7.12 常对象与常成员(const)7.13 友…

SQLite 存储过程

在SQLite中,存储过程的支持是通过触发器和自定义函数来实现的。尽管SQLite并没有像其他数据库管理系统一样提供直接创建存储过程的语法,但我们可以通过创建触发器和自定义函数来模拟存储过程的功能。 创建存储过程的步骤 要创建存储过程,我…

从被动应对到主动防御:开发团队技术故障处理能力的全面升级,未雨绸缪,制胜未来!

开发团队如何应对突发的技术故障和危机? 网易云音乐 时间:2024年8月19日下午 问题: 服务器故障:网易云音乐网页端出现“502 Bad Gateway”报错,App也无法正常使用。影响:用户无法正常登录和使用app、we…

关于java中Excel的导入导出

提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档 文章目录 前言一、配置pom依赖二、搭建utils工具类1.Excel表头设置表2.Excel导入导出工具类3.Excel导出配置4.Excel导入配置 三、添加user表和工具类使用方法1.user表设置2.工…

Nosql数据库redis集群配置详解

一、Redis的安装 环境介绍: 一主双从:10(redis-node1)主,20(redis-node2) 30(redis-node3)从——使用的是红帽9.1系统 源码安装redis [rootredis-node1 ~]# tar zxf red…