当前位置:网站首页>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类型。
边栏推荐
- Interview assault 63: how to remove duplication in MySQL?
- 社招面试心得,2022最新Android高频精选面试题分享
- 学习打卡web
- 腾讯云数据库公有云市场稳居TOP 2!
- 数据的同步为每个站点创建触发器同步表
- String长度限制?
- POJ1149 PIGS 【最大流量】
- js实现力扣71题简化路径
- [translation] supply chain security project in toto moved to CNCF incubator
- Live broadcast today | the 2022 Hongji ecological partnership conference of "Renji collaboration has come" is ready to go
猜你喜欢
zabbix 代理服务器 与 zabbix-snmp 监控
spark基础-scala
Classic 100 questions of algorithm interview, the latest career planning of Android programmers
Mysql Information Schema 学习(一)--通用表
[translation] linkerd's adoption rate in Europe and North America exceeded istio, with an increase of 118% in 2021.
VMware virtual machine cannot open the kernel device "\.\global\vmx86"
Example of applying fonts to flutter
How to access localhost:8000 by mobile phone
手把手教你学会js的原型与原型链,猴子都能看懂的教程
腾讯T4架构师,android面试基础
随机推荐
[玩转Linux] [Docker] MySQL安装和配置
Mysql Information Schema 學習(一)--通用錶
力扣101题:对称二叉树
1805. 字符串中不同整数的数目
AsyncHandler
ZABBIX proxy server and ZABBIX SNMP monitoring
Leetcode 30. Concatenate substrings of all words
[translation] linkerd's adoption rate in Europe and North America exceeded istio, with an increase of 118% in 2021.
句号压缩过滤器
short i =1; I=i+1 and short i=1; Difference of i+=1
spark基础-scala
Classic 100 questions of algorithm interview, the latest career planning of Android programmers
Information System Project Manager - Chapter VIII project quality management
Selenium advanced operations
腾讯T2大牛亲自讲解,跳槽薪资翻倍
About image reading and processing, etc
HDU 1026 Ignatius and the Princess I 迷宫范围内的搜索剪枝问题
算法面试经典100题,Android程序员最新职业规划
Hudi vs Delta vs Iceberg
JDBC details