当前位置:网站首页>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 .
边栏推荐
- Test Li hi
- DOM operation
- Synchronization of data create trigger synchronization table for each site
- 【翻译】Linkerd在欧洲和北美的采用率超过了Istio,2021年增长118%。
- Introduction to enterprise lean management system
- Example of shutter text component
- Understand yolov1 Part II non maximum suppression (NMS) in prediction stage
- 腾讯T3手把手教你,真的太香了
- Analysis of rainwater connection
- [玩转Linux] [Docker] MySQL安装和配置
猜你喜欢
Speech recognition (ASR) paper selection: talcs: an open source Mandarin English code switching corps and a speech
Transformer model (pytorch code explanation)
Using clip path to draw irregular graphics
Standardized QCI characteristics
beegfs高可用模式探讨
力扣101题:对称二叉树
信息系统项目管理师---第八章 项目质量管理
腾讯T3大牛手把手教你,大厂内部资料
A5000 vGPU显示模式切换
在解决了 2961 个用户反馈后,我做出了这样的改变...
随机推荐
社招面试心得,2022最新Android高频精选面试题分享
Cf960g - bandit Blues (type I Stirling number +ogf)
Monthly report of speech synthesis (TTS) and speech recognition (ASR) papers in June 2022
LeetCode_ Double pointer_ Medium_ 61. rotating linked list
范式的数据库具体解释
《数字经济全景白皮书》保险数字化篇 重磅发布
350. 两个数组的交集 II
HDU 1026 search pruning problem within the labyrinth of Ignatius and the prince I
腾讯架构师首发,2022Android面试笔试总结
After solving 2961 user feedback, I made such a change
1805. 字符串中不同整数的数目
Learning and Exploration - function anti shake
案例 ①|主机安全建设:3个层级,11大能力的最佳实践
企业精益管理体系介绍
Standardized QCI characteristics
Yyds dry goods inventory leetcode question set 751 - 760
Learning and Exploration - Seamless rotation map
Poj3617 best cow line
手把手教你学会js的原型与原型链,猴子都能看懂的教程
Swiftui game source code Encyclopedia of Snake game based on geometryreader and preference