暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

万里数据库分布式GreatDB Cluster 安装与启动-手动部署(1)

原创 Dbb 2024-04-11
757

手动部署

本文以6台物理服务器的生产环境的拓扑图进行手动部署的步骤说明,

系统检查

部署前,请进行系统配置检查。

依赖库安装

GreatDB Cluster服务器程序依赖libaio库,用户可以通过如下命令进行安装。

## Yum-based systems
shell> yum search libaio  # search for info
shell> yum install libaio-devel # install library
## APT-based systems
shell> apt-cache search libaio # search for info
shell> apt-get install libaio-dev # install library

GreatDB Cluster客户端程序依赖libncurses库,用户可以通过如下命令进行安装:

## Yum-based systems
shell> yum search ncurses       # search for info
shell> yum install ncurses-devel # install library
## APT-based systems
shell> apt-cache search libncurses # search for info
shell> apt-get install libncurses5-dev # install library

二进制包安装

万里开源提供GreatDB Cluster的二进制发布包,以tar包的形式发布,这里以greatdb-cluster-5.0.3-Linux-glibc2.12-x86_64.tar.xz的压缩包为例,进行安装说明。

解压后的文件布局如下:

目录名称目录内容
bin服务器程序和客户端程序
docs手册
include头文件
lib库文件
share辅助文件

重点文件说明:

  1. bin/greatsqld: SQL节点后台程序
  2. bin/greatdbd: 数据节点后台程序

  3. bin/greatsql: SQL节点客户端程序,用于登陆SQL节点

  4. bin/greatsqld_safe: 启动SQL节点的守护程序

  5. bin/greatdbd_safe: 启动数据节点的守护程序

按照下面的指令进行二进制包的安装:

shell> groupadd greatdb
shell> useradd -r -g greatdb -s /bin/false greatdb
shell> cd /usr/local
shell> tar Jxvf /path/to/greatdb-cluster-5.0.3-Linux-glibc2.12-x86_64.tar.xz
shell> ln -s greatdb-cluster-5.0.3-Linux-glibc2.12-x86_64 greatdb-cluster
shell> cd greatdb-cluster
shell> chown greatdb:greatdb -R .


最后修改时间:2024-04-11 11:12:32
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

文章被以下合辑收录

评论