当前位置:网站首页>Oceanbase Community Edition OBD mode deployment mode stand-alone installation
Oceanbase Community Edition OBD mode deployment mode stand-alone installation
2022-07-06 19:56:00 【Prodigal son Wu Tian】
One 、 Introduction to stand-alone installation
obtain OceanBase The fastest way to use a database is to use OBD obtain , Therefore, it is recommended that you install OBD obtain OceanBase database . Stand alone installation , That is, the central control machine and the target machine are not the same machine , And there is only one target machine .
- Central control machine : Storage OceanBase Database installation package and cluster configuration information machine .
- Target machine : install OceanBase Database machine .
- OBD:OceanBase Deployer,OceanBase Open source software installation and deployment tools , Referred to as OBD.
- ODP:OceanBase Database Proxy,OceanBase High performance reverse proxy server , Referred to as ODP.
Two 、 Resource Planning
Serial number | Host name | IP | purpose | System | To configure |
---|---|---|---|---|---|
1 | s152 | 192.168.0.152 | Central computer | centos7.6 | 2c,8G Memory ,80G disk space |
2 | s153 | 192.168.0.153 | Target machine | centos7.6 | 2c,8G Memory ,80G disk space |
3、 ... and 、 Installation steps
1、 Configure the server according to the environment preparation
reference OceanBase Community version OBD Mode deployment mode local installation Chapter on environmental preparation s152 and s153 Server configuration system ntp、sysctl.conf And so on .
2、 Disk planning
It has been created when the operating system is installed /data,/redo Partition , You only need to authorize these two partitions to the installation user , The installation user in the blog experiment is wuhs.
[[email protected] ~]# chown -R wuhs.wuhs /data
[[email protected] ~]# chown -R wuhs.wuhs /redo
3、s152 install yum-utils
[[email protected] ~]$ sudo yum install -y yum-utils
We've learned from the system administrator that you trust .
To sum up, there are no more than these three points :
#1) Respect the privacy of others .
#2) Think about it before you enter it ( Consequences and risks ).
#3) The more power , The greater the responsibility .
[sudo] wuhs Password :
…
already installed :
yum-utils.noarch 0:1.1.31-54.el7_8
…
complete !
4、s152 download OceanBase YUM Source repo file
[[email protected] ~]$ sudo yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo
Loaded plug-in :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/
Total usage 36
-rw-r–r–. 1 root root 1664 11 month 23 2018 CentOS-Base.repo
-rw-r–r–. 1 root root 1309 11 month 23 2018 CentOS-CR.repo
-rw-r–r–. 1 root root 649 11 month 23 2018 CentOS-Debuginfo.repo
-rw-r–r–. 1 root root 314 11 month 23 2018 CentOS-fasttrack.repo
-rw-r–r–. 1 root root 630 11 month 23 2018 CentOS-Media.repo
-rw-r–r–. 1 root root 1331 11 month 23 2018 CentOS-Sources.repo
-rw-r–r–. 1 root root 5701 11 month 23 2018 CentOS-Vault.repo
-rw-r–r–. 1 root root 512 5 month 14 2021 OceanBase.repo
5、s152 install OBD
[[email protected] ~]$ sudo yum install -y ob-deploy
…
already installed :
ob-deploy.x86_64 0:1.3.3-11.el7
complete !
6、 Download the stand-alone installation configuration file
Visit the official website mini-single-example.yaml, Copy the configuration file to the server and save it as mini-single.yaml.
7、 Configure user name and password
username Is the user name that logs in to the target machine , Make sure your user name has OBServer Process working directory home_path Authority .
8、 modify IP Address
9、 Modify... In the configuration file devname Variables and home_path
10、 Save the configuration file after modification
11、s153 To create a oceanbase Catalog
[[email protected] ~]# su - wuhs
Last login : Four 6 month 9 15:22:30 CST 2022pts/0 On
[[email protected] ~]$ mkdir oceanbase
12、 Deploy OceanBase database
[[email protected] ~]$ obd cluster deploy myob -c mini-single.yaml
13、s153 View the installation results on the target machine
[[email protected] ~]$ ll oceanbase/
Total usage 0
drwxrwxr-x. 2 wuhs wuhs 6 6 month 9 15:54 admin
drwxrwxr-x. 2 wuhs wuhs 22 6 month 9 15:54 bin
drwxrwxr-x. 2 wuhs wuhs 6 6 month 9 15:54 etc
drwxrwxr-x. 2 wuhs wuhs 109 6 month 9 15:54 lib
drwxrwxr-x. 2 wuhs wuhs 6 6 month 9 15:54 log
lrwxrwxrwx. 1 wuhs wuhs 5 6 month 9 15:54 store -> /data
14、 start-up OceanBase database
[[email protected] ~]$ obd cluster start myob
15、 Use Navicat Premium Connect OceanBase database
have access to Navicat Premium Tool connection OceanBase database , When creating a new connection, select mysql type .
边栏推荐
- Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
- 某东短信登录复活 安装部署教程
- Transformer model (pytorch code explanation)
- (3) Web security | penetration testing | basic knowledge of network security construction, IIS website construction, EXE backdoor generation tool quasar, basic use of
- 算法面试经典100题,Android程序员最新职业规划
- 青龙面板白屏一键修复
- How to do smoke test
- String长度限制?
- 新一代垃圾回收器—ZGC
- Method keywords deprecated, externalprocname, final, forcegenerate
猜你喜欢
Blue Bridge Cup microbial proliferation C language
腾讯T2大牛亲自讲解,跳槽薪资翻倍
Introduction to enterprise lean management system
Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"
利用 clip-path 绘制不规则的图形
Standardized QCI characteristics
Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe
Vmware虚拟机无法打开内核设备“\\.\Global\vmx86“的解决方法
[infrastructure] deployment and configuration of Flink / Flink CDC (MySQL / es)
深入浅出,面试突击版
随机推荐
语音识别(ASR)论文优选:全球最大的中英混合开源数据TALCS: An Open-Source Mandarin-English Code-Switching Corpus and a Speech
深入浅出,面试突击版
The "white paper on the panorama of the digital economy" has been released with great emphasis on the digitalization of insurance
深度剖析原理,看完这一篇就够了
精彩编码 【进制转换】
VMware virtual machine cannot open the kernel device "\.\global\vmx86"
HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
某东短信登录复活 安装部署教程
Yyds dry goods inventory leetcode question set 751 - 760
Database specific interpretation of paradigm
OceanBase社区版之OBD方式部署方式单机安装
In simple terms, interview surprise Edition
Learning and Exploration - function anti shake
Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe
Pay attention to the partners on the recruitment website of fishing! The monitoring system may have set you as "high risk of leaving"
Monthly report of speech synthesis (TTS) and speech recognition (ASR) papers in June 2022
腾讯Android面试必问,10年Android开发经验
Example of applying fonts to flutter
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
121. The best time to buy and sell stocks