当前位置:网站首页>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类型。
边栏推荐
- Lick the dog until the last one has nothing (simple DP)
- redisson bug分析
- Spark foundation -scala
- The "white paper on the panorama of the digital economy" has been released with great emphasis on the digitalization of insurance
- Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
- MySql必知必会学习
- Appx代码签名指南
- Learning and Exploration - Seamless rotation map
- [translation] supply chain security project in toto moved to CNCF incubator
- Selenium advanced operations
猜你喜欢
蓝桥杯 微生物增殖 C语言
【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
spark基础-scala
beegfs高可用模式探讨
Leetcode 30. 串联所有单词的子串
腾讯T3大牛手把手教你,大厂内部资料
手把手教你学会js的原型与原型链,猴子都能看懂的教程
MySQL information Schema Learning (i) - - General table
Druid database connection pool details
[play with Linux] [docker] MySQL installation and configuration
随机推荐
MySQL information schema learning (II) -- InnoDB table
凤凰架构2——访问远程服务
In depth analysis, Android interview real problem analysis is popular all over the network
CF960G - Bandit Blues(第一类斯特林数+OGF)
spark基础-scala
Method keywords deprecated, externalprocname, final, forcegenerate
凤凰架构3——事务处理
How to customize animation avatars? These six free online cartoon avatar generators are exciting at a glance!
终于可以一行代码也不用改了!ShardingSphere 原生驱动问世
zabbix 代理服务器 与 zabbix-snmp 监控
redisson bug分析
Blue Bridge Cup microbial proliferation C language
方法关键字Deprecated,ExternalProcName,Final,ForceGenerate
Low CPU load and high loadavg processing method
激进技术派 vs 项目保守派的微服务架构之争
After solving 2961 user feedback, I made such a change
广州首个数据安全峰会将在白云区开幕
腾讯字节等大厂面试真题汇总,网易架构师深入讲解Android开发
深入浅出,面试突击版
理解 YOLOV1 第二篇 预测阶段 非极大值抑制(NMS)