当前位置:网站首页>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 .
边栏推荐
- MySQL information schema learning (II) -- InnoDB table
- 【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
- 某东短信登录复活 安装部署教程
- 1805. Number of different integers in the string
- 社招面试心得,2022最新Android高频精选面试题分享
- mod_wsgi + pymssql通路SQL Server座
- 在解决了 2961 个用户反馈后,我做出了这样的改变...
- After solving 2961 user feedback, I made such a change
- HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
- Interview assault 63: how to remove duplication in MySQL?
猜你喜欢
[玩转Linux] [Docker] MySQL安装和配置
Tencent Android interview must ask, 10 years of Android development experience
A5000 vgpu display mode switching
力扣101题:对称二叉树
beegfs高可用模式探讨
夏志刚介绍
Chic Lang: attributeerror: partially initialized module 'CV2' has no attribute 'GAPI_ wip_ gst_ GStreamerPipe
The "white paper on the panorama of the digital economy" has been released with great emphasis on the digitalization of insurance
如何自定义动漫头像?这6个免费精品在线卡通头像生成器,看一眼就怦然心动!
理解 YOLOV1 第二篇 预测阶段 非极大值抑制(NMS)
随机推荐
POJ 3207 Ikki's Story IV – Panda's Trick (2-SAT)
[translation] supply chain security project in toto moved to CNCF incubator
Li Kou 101: symmetric binary tree
Leetcode 30. Concatenate substrings of all words
js实现力扣71题简化路径
Learn to explore - use pseudo elements to clear the high collapse caused by floating elements
Analysis of rainwater connection
MySQL information schema learning (II) -- InnoDB table
系统与应用监控的思路和方法
String长度限制?
How to access localhost:8000 by mobile phone
Vmware虚拟机无法打开内核设备“\\.\Global\vmx86“的解决方法
Information System Project Manager - Chapter VIII project quality management
mod_ WSGI + pymssql path SQL server seat
[玩转Linux] [Docker] MySQL安装和配置
Swiftui game source code Encyclopedia of Snake game based on geometryreader and preference
Speech recognition (ASR) paper selection: talcs: an open source Mandarin English code switching corps and a speech
Vscode debug run fluent message: there is no extension for debugging yaml. Should we find yaml extensions in the market?
CF960G - Bandit Blues(第一类斯特林数+OGF)
MySQL must know and learn