当前位置:网站首页>OceanBase社区版之OBD方式部署方式单机安装
OceanBase社区版之OBD方式部署方式单机安装
2022-07-06 11:55:00 【浪子吴天】
一、单机安装简介
获取 OceanBase 数据库最快的方式是使用 OBD 获取,因此推荐您通过安装 OBD 获取 OceanBase 数据库。单机安装,即中控机器和目标机器不是同一台机器,且目标机器只有一台。
- 中控机器:存储 OceanBase 数据库安装包和集群配置信息的机器。
- 目标机器:安装 OceanBase 数据库的机器。
- OBD:OceanBase Deployer,OceanBase 开源软件的安装部署工具,简称为 OBD。
- ODP:OceanBase Database Proxy,OceanBase 高性能反向代理服务器,简称为 ODP。
二、资源规划
| 序号 | 主机名 | IP | 用途 | 系统 | 配置 |
|---|---|---|---|---|---|
| 1 | s152 | 192.168.0.152 | 中控机 | centos7.6 | 2c,8G内存,80G磁盘空间 |
| 2 | s153 | 192.168.0.153 | 目标机 | centos7.6 | 2c,8G内存,80G磁盘空间 |
三、安装步骤
1、按照环境准备配置服务器
参照OceanBase社区版之OBD方式部署方式本地安装环境准备章节给s152和s153服务器配置系统ntp、sysctl.conf等基础配置。
2、磁盘规划
在操作系统安装的时候已经创建了/data,/redo分区,只需要将这两个分区授权给安装用户即可,博文实验中安装用户为wuhs。
[[email protected] ~]# chown -R wuhs.wuhs /data
[[email protected] ~]# chown -R wuhs.wuhs /redo
3、s152安装yum-utils
[[email protected] ~]$ sudo yum install -y yum-utils
我们信任您已经从系统管理员那里了解了日常注意事项。
总结起来无外乎这三点:
#1) 尊重别人的隐私。
#2) 输入前要先考虑(后果和风险)。
#3) 权力越大,责任越大。
[sudo] wuhs 的密码:
…
已安装:
yum-utils.noarch 0:1.1.31-54.el7_8
…
完毕!
4、s152下载OceanBase YUM源repo文件
[[email protected] ~]$ sudo yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo
已加载插件:fastestmirror
adding repo from: https://mirrors.aliyun.com/oceanbase/OceanBase.repo
grabbing file https://mirrors.aliyun.com/oceanbase/OceanBase.repo to /etc/yum.repos.d/OceanBase.repo
repo saved to /etc/yum.repos.d/OceanBase.repo
[[email protected] ~]$ ll /etc/yum.repos.d/
总用量 36
-rw-r–r–. 1 root root 1664 11月 23 2018 CentOS-Base.repo
-rw-r–r–. 1 root root 1309 11月 23 2018 CentOS-CR.repo
-rw-r–r–. 1 root root 649 11月 23 2018 CentOS-Debuginfo.repo
-rw-r–r–. 1 root root 314 11月 23 2018 CentOS-fasttrack.repo
-rw-r–r–. 1 root root 630 11月 23 2018 CentOS-Media.repo
-rw-r–r–. 1 root root 1331 11月 23 2018 CentOS-Sources.repo
-rw-r–r–. 1 root root 5701 11月 23 2018 CentOS-Vault.repo
-rw-r–r–. 1 root root 512 5月 14 2021 OceanBase.repo
5、s152安装OBD
[[email protected] ~]$ sudo yum install -y ob-deploy
…
已安装:
ob-deploy.x86_64 0:1.3.3-11.el7
完毕!
6、下载单机安装配置文件
访问官网mini-single-example.yaml,将配置文件拷贝到服务器上保存为mini-single.yaml。
7、配置用户名密码
username 为登录到目标机器的用户名,确保您的用户名有 OBServer 进程工作目录 home_path 的权限。
8、修改IP地址

9、修改配置文件中的 devname 变量和 home_path

10、修改完成后保存配置文件

11、s153上创建oceanbase目录
[[email protected] ~]# su - wuhs
上一次登录:四 6月 9 15:22:30 CST 2022pts/0 上
[[email protected] ~]$ mkdir oceanbase
12、部署OceanBase数据库

[[email protected] ~]$ obd cluster deploy myob -c mini-single.yaml
13、s153目标机上查看安装结果
[[email protected] ~]$ ll oceanbase/
总用量 0
drwxrwxr-x. 2 wuhs wuhs 6 6月 9 15:54 admin
drwxrwxr-x. 2 wuhs wuhs 22 6月 9 15:54 bin
drwxrwxr-x. 2 wuhs wuhs 6 6月 9 15:54 etc
drwxrwxr-x. 2 wuhs wuhs 109 6月 9 15:54 lib
drwxrwxr-x. 2 wuhs wuhs 6 6月 9 15:54 log
lrwxrwxrwx. 1 wuhs wuhs 5 6月 9 15:54 store -> /data
14、启动OceanBase数据库


[[email protected] ~]$ obd cluster start myob
15、使用Navicat Premium连接OceanBase数据库
可以使用Navicat Premium工具连接OceanBase数据库,新建连接时选择mysql类型。

边栏推荐
- A5000 vGPU显示模式切换
- Method keywords deprecated, externalprocname, final, forcegenerate
- The "white paper on the panorama of the digital economy" has been released with great emphasis on the digitalization of insurance
- POJ3617 Best Cow Line 馋
- Spark foundation -scala
- Lick the dog until the last one has nothing (simple DP)
- 凤凰架构2——访问远程服务
- 10 schemes to ensure interface data security
- Information System Project Manager - Chapter VIII project quality management
- Tensorflow2.0 self defined training method to solve function coefficients
猜你喜欢

MySQL information schema learning (II) -- InnoDB table

面试突击63:MySQL 中如何去重?

利用 clip-path 绘制不规则的图形

深入浅出,面试突击版

MySQL information schema learning (I) -- general table

如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!

Systematic and detailed explanation of redis operation hash type data (with source code analysis and test results)

Hudi vs Delta vs Iceberg

企业精益管理体系介绍
![[calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer](/img/8c/afb90128e7a523bbee4c6c4166363f.png)
[calculating emotion and thought] floor sweeper, typist, information panic and Oppenheimer
随机推荐
zabbix 代理服务器 与 zabbix-snmp 监控
Reflection and illegalaccessexception exception during application
学习打卡web
Low CPU load and high loadavg processing method
Unbalance balance (dynamic programming, DP)
Method keywords deprecated, externalprocname, final, forcegenerate
Finally, there is no need to change a line of code! Shardingsphere native driver comes out
LeetCode_格雷编码_中等_89.格雷编码
Simple application of VBA script in Excel
Mind map + source code + Notes + project, ByteDance + JD +360+ Netease interview question sorting
MySql必知必会学习
腾讯T3手把手教你,真的太香了
1805. Number of different integers in the string
Tensorflow2.0 self defined training method to solve function coefficients
In simple terms, interview surprise Edition
腾讯云数据库公有云市场稳居TOP 2!
Phoenix Architecture 2 - accessing remote services
腾讯T3大牛手把手教你,大厂内部资料
Hudi vs Delta vs Iceberg
Configuration and simple usage of the EXE backdoor generation tool quasar