如何安装 StoneDB 2.0 企业版? | StoneDB 使用教程 #2

2023-11-09 08:12

本文主要是介绍如何安装 StoneDB 2.0 企业版? | StoneDB 使用教程 #2,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

通过二进制TAR包安装(CentOS 7.X)

下载安装包

stonedb-ee-8.0-v2.1.0.el7.x86_64.tar.gz

下载地址:https://www.stoneatom.com/download

 

解压安装包

tar -zxvf stonedb-ee-8.0-v2.1.0.el7.x86_64.tar.gz -C /opt

依赖检查

ldd -r /opt/stonedb_v2/install/bin/mysqld
ldd -r /opt/stonedb_v2/install/bin/mysql

注:若检查返回有关键字"not found",说明缺少依赖文件,可以从安装目录 /opt/stonedb_v2/install/lib64 下找到对应的依赖文件,然后拷贝到本地目录 /lib64。

编辑参数文件

[client]
port = 3306
socket          = /opt/stonedb_v2/install/tmp/mysql.sock[mysqld]
port                = 3306
basedir             = /opt/stonedb_v2/install/
tmpdir              = /opt/stonedb_v2/install/tmp/
socket              = /opt/stonedb_v2/install/tmp/mysql.sock
datadir             = /opt/stonedb_v2/install/data/
pid-file            = /opt/stonedb_v2/install/mysqld.pid
log-error           = /opt/stonedb_v2/install/log/mysqld.log
slow_query_log_file = /opt/stonedb_v2/install/log/slow.log
log-bin             = /opt/stonedb_v2/install/binlog/mysql-bin.logmax_connections = 1000
max_binlog_size = 512M
sync_binlog = 1
binlog_format = row
open_files_limit = 65535
server_id = 1innodb_buffer_pool_size = 512M
innodb_data_file_path = ibdata1:1G:autoextend
innodb_log_buffer_size = 32M
innodb_log_file_size = 512M
innodb_log_files_in_group = 2

创建组、用户、目录

groupadd mysql
useradd -g mysql mysql -s /usr/bin/nologinmkdir -p /opt/stonedb_v2/install/tmp
mkdir -p /opt/stonedb_v2/install/data
mkdir -p /opt/stonedb_v2/install/log
mkdir -p /opt/stonedb_v2/install/binlogchown -R mysql:mysql /opt/stonedb_v2

初始化实例

​/opt/stonedb_v2/install/bin/mysqld --defaults-file=/opt/stonedb_v2/install/my.cnf --initialize --user=mysql

启动实例

/opt/stonedb_v2/install/bin/mysqld_safe --defaults-file=/opt/stonedb_v2/install/my.cnf --user=mysql &

登录数据库

cat /opt/stonedb_v2/install/log/mysqld.log |grep password/opt/stonedb_v2/install/bin/mysql -uroot -p -S /opt/stonedb_v2/install/tmp/mysql.sock

通过RPM包安装(CentOS 7.X)

下载安装包

`stonedb-ee-8.0-v2.1.0.el7.x86_64.rpm

下载地址:https://www.stoneatom.com/download

解压安装包

rpm -ivh stonedb-ee-8.0-v2.1.0.el7.x86_64.rpm

注:解压后,默认路径为 /opt/stonedb_v2/install。

检查依赖

ldd -r /opt/stonedb_v2/install/bin/mysqld
ldd -r /opt/stonedb_v2/install/bin/mysql

注:若检查返回有关键字"not found",说明缺少依赖文件,可以从安装目录 /opt/stonedb_v2/install/lib64 下找到对应的依赖文件,然后拷贝到本地目录 /lib64。

编辑参数文件

​[client]
port = 3306
socket          = /opt/stonedb_v2/install/tmp/mysql.sock[mysqld]
port                = 3306
basedir             = /opt/stonedb_v2/install/
tmpdir              = /opt/stonedb_v2/install/tmp/
socket              = /opt/stonedb_v2/install/tmp/mysql.sock
datadir             = /opt/stonedb_v2/install/data/
pid-file            = /opt/stonedb_v2/install/mysqld.pid
log-error           = /opt/stonedb_v2/install/log/mysqld.log
slow_query_log_file = /opt/stonedb_v2/install/log/slow.log
log-bin             = /opt/stonedb_v2/install/binlog/mysql-bin.logmax_connections = 1000
max_binlog_size = 512M
sync_binlog = 1
binlog_format = row
open_files_limit = 65535
server_id = 1innodb_buffer_pool_size = 512M
innodb_data_file_path = ibdata1:1G:autoextend
innodb_log_buffer_size = 32M
innodb_log_file_size = 512M
innodb_log_files_in_group = 2

创建组、用户、目录

groupadd mysql
useradd -g mysql mysql -s /usr/bin/nologinmkdir -p /opt/stonedb_v2/install/tmp
mkdir -p /opt/stonedb_v2/install/data
mkdir -p /opt/stonedb_v2/install/log
mkdir -p /opt/stonedb_v2/install/binlogchown -R mysql:mysql /opt/stonedb_v2

初始化实例

/opt/stonedb_v2/install/bin/mysqld --defaults-file=/opt/stonedb_v2/install/my.cnf --initialize --user=mysql

启动实例

/opt/stonedb_v2/install/bin/mysqld_safe --defaults-file=/opt/stonedb_v2/install/my.cnf --user=mysql &

登录数据库

cat /opt/stonedb_v2/install/log/mysqld.log |grep password/opt/stonedb_v2/install/bin/mysql -uroot -p -S /opt/stonedb_v2/install/tmp/mysql.sock

通过DEB包安装(Ubuntu 20.04)

下载安装包

stonedb-ee-8.0-v2.1.0.ubuntu.amd64.deb

下载地址:https://www.stoneatom.com/download

解压安装包

dpkg -x stonedb-ee-8.0-v2.1.0.ubuntu.amd64.deb /opt

注:解压后,默认路径为 /opt/stonedb_v2/install。

检查依赖

ldd -r /opt/stonedb_v2/install/bin/mysqld
ldd -r /opt/stonedb_v2/install/bin/mysql

注:若检查返回有关键字"not found",说明缺少依赖文件,可以从安装目录 /opt/stonedb_v2/install/lib64 下找到对应的依赖文件,然后拷贝到本地目录 /lib64。

编辑参数文件

[client]
port = 3306
socket          = /opt/stonedb_v2/install/tmp/mysql.sock[mysqld]
port                = 3306
basedir             = /opt/stonedb_v2/install/
tmpdir              = /opt/stonedb_v2/install/tmp/
socket              = /opt/stonedb_v2/install/tmp/mysql.sock
datadir             = /opt/stonedb_v2/install/data/
pid-file            = /opt/stonedb_v2/install/mysqld.pid
log-error           = /opt/stonedb_v2/install/log/mysqld.log
slow_query_log_file = /opt/stonedb_v2/install/log/slow.log
log-bin             = /opt/stonedb_v2/install/binlog/mysql-bin.logmax_connections = 1000
max_binlog_size = 512M
sync_binlog = 1
binlog_format = row
open_files_limit = 65535
server_id = 1innodb_buffer_pool_size = 512M
innodb_data_file_path = ibdata1:1G:autoextend
innodb_log_buffer_size = 32M
innodb_log_file_size = 512M
innodb_log_files_in_group = 2

创建组、用户、目录

groupadd mysql
useradd -g mysql mysql -s /usr/bin/nologinmkdir -p /opt/stonedb_v2/install/tmp
mkdir -p /opt/stonedb_v2/install/data
mkdir -p /opt/stonedb_v2/install/log
mkdir -p /opt/stonedb_v2/install/binlogchown -R mysql:mysql /opt/stonedb_v2

初始化实例

/opt/stonedb_v2/install/bin/mysqld --defaults-file=/opt/stonedb_v2/install/my.cnf --initialize --user=mysql

启动实例

/opt/stonedb_v2/install/bin/mysqld_safe --defaults-file=/opt/stonedb_v2/install/my.cnf --user=mysql &

登录数据库

cat /opt/stonedb_v2/install/log/mysqld.log |grep password/opt/stonedb_v2/install/bin/mysql -uroot -p -S /opt/stonedb_v2/install/tmp/mysql.sock

以上是StoneDB-8.0-V2.0企业公测版系列的安装说明,需要指出的是,在本文中我们只是以V2.1.0版本为例,本编译安装教程具有通用性,版本号读者可以自行更新为最新版本。

StoneDB 产品介绍

StoneDB 是石原子科技自主设计研发的国内首款完全兼容于 MySQL 生态的开源一体化实时 HTAP 数据库产品,具备行列混存、智能索引等核心特性,为 MySQL 数据库提供在线数据实时就近分析服务,能够高效解决 MySQL 数据库在分析型应用场景中面临的能力问题。同时,StoneDB 使用多存储引擎架构的设计,事务引擎具有数据强一致特性,具备完整的事务并发处理能力,使得 StoneDB 可以替代 MySQL 数据库满足在线事务处理场景的需求,使用 MySQL 的用户,通过 StoneDB 可以实现 TP+AP 混合负载,分析性能提升 10 倍以上,不需要进行数据迁移,也无需与其他 AP 集成,弥补 MySQL 分析领域的空白。

StoneDB 社区

Github:​​​​https://github.com/stoneatom/stonedb

Gitee:https://gitee.com/StoneDB/stonedb

社区官网:StoneDB - A Real-time HTAP Database | StoneDB

哔哩哔哩:StoneDB的个人空间-StoneDB个人主页-哔哩哔哩视频

Twitter:https://twitter.com/StoneDataBase

Linkedin:https://www.linkedin.com/in/stonedb/

这篇关于如何安装 StoneDB 2.0 企业版? | StoneDB 使用教程 #2的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/374974

相关文章

Go语言使用sync.Mutex实现资源加锁

《Go语言使用sync.Mutex实现资源加锁》数据共享是一把双刃剑,Go语言为我们提供了sync.Mutex,一种最基础也是最常用的加锁方式,用于保证在任意时刻只有一个goroutine能访问共享... 目录一、什么是 Mutex二、为什么需要加锁三、实战案例:并发安全的计数器1. 未加锁示例(存在竞态)

setsid 命令工作原理和使用案例介绍

《setsid命令工作原理和使用案例介绍》setsid命令在Linux中创建独立会话,使进程脱离终端运行,适用于守护进程和后台任务,通过重定向输出和确保权限,可有效管理长时间运行的进程,本文给大家介... 目录setsid 命令介绍和使用案例基本介绍基本语法主要特点命令参数使用案例1. 在后台运行命令2.

使用Redis快速实现共享Session登录的详细步骤

《使用Redis快速实现共享Session登录的详细步骤》在Web开发中,Session通常用于存储用户的会话信息,允许用户在多个页面之间保持登录状态,Redis是一个开源的高性能键值数据库,广泛用于... 目录前言实现原理:步骤:使用Redis实现共享Session登录1. 引入Redis依赖2. 配置R

使用Python的requests库调用API接口的详细步骤

《使用Python的requests库调用API接口的详细步骤》使用Python的requests库调用API接口是开发中最常用的方式之一,它简化了HTTP请求的处理流程,以下是详细步骤和实战示例,涵... 目录一、准备工作:安装 requests 库二、基本调用流程(以 RESTful API 为例)1.

使用Python开发一个Ditto剪贴板数据导出工具

《使用Python开发一个Ditto剪贴板数据导出工具》在日常工作中,我们经常需要处理大量的剪贴板数据,下面将介绍如何使用Python的wxPython库开发一个图形化工具,实现从Ditto数据库中读... 目录前言运行结果项目需求分析技术选型核心功能实现1. Ditto数据库结构分析2. 数据库自动定位3

Python yield与yield from的简单使用方式

《Pythonyield与yieldfrom的简单使用方式》生成器通过yield定义,可在处理I/O时暂停执行并返回部分结果,待其他任务完成后继续,yieldfrom用于将一个生成器的值传递给另一... 目录python yield与yield from的使用代码结构总结Python yield与yield

Go语言使用select监听多个channel的示例详解

《Go语言使用select监听多个channel的示例详解》本文将聚焦Go并发中的一个强力工具,select,这篇文章将通过实际案例学习如何优雅地监听多个Channel,实现多任务处理、超时控制和非阻... 目录一、前言:为什么要使用select二、实战目标三、案例代码:监听两个任务结果和超时四、运行示例五

python使用Akshare与Streamlit实现股票估值分析教程(图文代码)

《python使用Akshare与Streamlit实现股票估值分析教程(图文代码)》入职测试中的一道题,要求:从Akshare下载某一个股票近十年的财务报表包括,资产负债表,利润表,现金流量表,保存... 目录一、前言二、核心知识点梳理1、Akshare数据获取2、Pandas数据处理3、Matplotl

Java使用Thumbnailator库实现图片处理与压缩功能

《Java使用Thumbnailator库实现图片处理与压缩功能》Thumbnailator是高性能Java图像处理库,支持缩放、旋转、水印添加、裁剪及格式转换,提供易用API和性能优化,适合Web应... 目录1. 图片处理库Thumbnailator介绍2. 基本和指定大小图片缩放功能2.1 图片缩放的

Win10安装Maven与环境变量配置过程

《Win10安装Maven与环境变量配置过程》本文介绍Maven的安装与配置方法,涵盖下载、环境变量设置、本地仓库及镜像配置,指导如何在IDEA中正确配置Maven,适用于Java及其他语言项目的构建... 目录Maven 是什么?一、下载二、安装三、配置环境四、验证测试五、配置本地仓库六、配置国内镜像地址