当前位置:网站首页>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 .
边栏推荐
- Tencent Android interview must ask, 10 years of Android development experience
- PHP and excel phpexcel
- MySQL information schema learning (I) -- general table
- LeetCode_ Double pointer_ Medium_ 61. rotating linked list
- POJ1149 PIGS 【最大流量】
- Standardized QCI characteristics
- LeetCode_双指针_中等_61. 旋转链表
- [玩转Linux] [Docker] MySQL安装和配置
- MySQL information Schema Learning (i) - - General table
- Example of shutter text component
猜你喜欢
随机推荐
golang的超时处理使用技巧
Test Li hi
Logstash expressway entrance
Speech recognition (ASR) paper selection: talcs: an open source Mandarin English code switching corps and a speech
redisson bug分析
LeetCode_双指针_中等_61. 旋转链表
1805. 字符串中不同整数的数目
Example of shutter text component
范式的数据库具体解释
Hudi vs Delta vs Iceberg
js实现力扣71题简化路径
腾讯字节阿里小米京东大厂Offer拿到手软,老师讲的真棒
Color is converted to tristimulus value (r/g/b) (dry stock)
(3) Web security | penetration testing | basic knowledge of network security construction, IIS website construction, EXE backdoor generation tool quasar, basic use of
力扣101题:对称二叉树
Monthly report of speech synthesis (TTS) and speech recognition (ASR) papers in June 2022
Understand yolov1 Part II non maximum suppression (NMS) in prediction stage
系统性详解Redis操作Hash类型数据(带源码分析及测试结果)
logstash高速入口
蓝桥杯 微生物增殖 C语言