Centos7和麒麟V10源码编译openGauss

openGauss数据库编译安装

1 修改psql源码

2 openGauss目前支持操作系统

CentOS 7.6
银河麒麟V10
Open

2 服务器前期准备

2.1 安装操作系统包

# yum -y install net-tools bzip2 bison python3 python3-devel libaio-devel flex ncurses-devel pam-devel libffi-devel patch autoconf automake byacc cmake diffutils openssl-devel libtool python-setuptools redhat-lsb-core golang libtool-devel readline readline-devel 

2.2 安装gcc7.3

[root@localhost cmake]#  yum install centos-release-scl 
[root@localhost cmake]#  yum install devtoolset-7
[root@localhost cmake]#  scl enable devtoolset-7 bash
[root@localhost cmake]#  gcc --version

2.3 升级cmake版本到3.6+

升级步骤

3 编译openGauss-third_party

由于在第一次安装时,选择下载官方编译好的三方依赖包,在安装openGauss最后一步时,出现CPU指令集无法执行的情况,所以在本地执行编译安装

# git clone https://gitee.com/opengauss/openGauss-third_party.git openGauss-third_party #openGauss依赖的开源第三方软件仓库

4 编译openGauss-OM

如需使用gs_om,需单独编译openGauss-OM,并将编译好的openGauss-xxx-om.tar.gz的包拷贝到openGauss-server安装包所在的目录,再按照企业版的方式进行安装。

[user@opengauss_server01 software]# git clone https://gitee.com/opengauss/openGauss-OM.git
[user@opengauss_server01 software]# cd openGauss-OM
[user@opengauss_server01 openGauss-OM]# sh build.sh -3rd /bjyn/software/openGauss-third_party_binarylibs

显示以下内容,表示 Gauss-OM编译成功:
ROOT_DIR: /root/binarylibs
Everything is ready.
success!
生成安装包在 packages下

5 编译openGauss-server

5.1 编译openGauss-server

5.2 安装openGauss-server

5.2.1 制作cluster_config.xml
5.2.2 预安装openGauss
[root@opengauss_server01 script]# ./gs_preinstall -U omm -G dbgrp -X /opt/software/openGauss/cluster_config.xml
Parsing the configuration file.
Successfully parsed the configuration file.
Installing the tools on the local node.
Successfully installed the tools on the local node.
Setting pssh path
Successfully set core path.
Are you sure you want to create the user[omm] and create trust for it (yes/no)? yes
Preparing SSH service.
Successfully prepared SSH service.
Checking OS software.
Successfully check os software.
Checking OS version.
Successfully checked OS version.
Creating cluster's path.
Successfully created cluster's path.
Set and check OS parameter.
Setting OS parameters.
Successfully set OS parameters.
Warning: Installation environment contains some warning messages.
Please get more details by "/opt/software/openGauss/script/gs_checkos -i A -h opengauss_server01 --detail".
Set and check OS parameter completed.
Preparing CRON service.
Successfully prepared CRON service.
Setting user environmental variables.
Successfully set user environmental variables.
Setting the dynamic link library.
Successfully set the dynamic link library.
Setting Core file
Successfully set core path.
Setting pssh path
Successfully set pssh path.
Setting Cgroup.
Successfully set Cgroup.
Set ARM Optimization.
No need to set ARM Optimization.
Fixing server package owner.
Setting finish flag.
Successfully set finish flag.
Preinstallation succeeded.
5.2.3 安装openGauss-server
# chown omm.dbgrp /opt/software/openGauss -R
# su - omm
# cd /opt/software/openGauss/scripts/
# ./gs_install -X /opt/software/openGauss/cluster_config.xml --gsinit-parameter="--locale=en_US.utf8"


Parsing the configuration file.
Check preinstall on every node.
Successfully checked preinstall on every node.
Creating the backup directory.
Successfully created the backup directory.
begin deploy..
Installing the cluster.
begin prepare Install Cluster..
Checking the installation environment on all nodes.
begin install Cluster..
Installing applications on all nodes.
Successfully installed APP.
begin init Instance..
encrypt cipher and rand files for database.
Please enter password for database:
Please repeat for database:
[GAUSS-50306] : The password of database is incorrect.The two passwords are different, please enter password again.
Please enter password for database:
Please repeat for database:
begin to create CA cert files
The sslcert will be generated in /opt/opengauss_server-2.1.0/install/app/share/sslcert/om
Cluster installation is completed.
Configuring.
Deleting instances from all nodes.
Successfully deleted instances from all nodes.
Checking node configuration on all nodes.
Initializing instances on all nodes.
Updating instance configuration on all nodes.
Check consistence of memCheck and coresCheck on database nodes.
Configuring pg_hba on all nodes.
Configuration is completed.
Successfully started cluster.
Successfully installed application.
end deploy..

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

IT_Bigboy_sz

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

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

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

打赏作者

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

抵扣说明:

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

余额充值