当前位置:网站首页>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
1s152192.168.0.152 Central computer centos7.62c,8G Memory ,80G disk space
2s153192.168.0.153 Target machine centos7.62c,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.
 Insert picture description here

[[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.
 Insert picture description here

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 .
 Insert picture description here

8、 modify IP Address

 Insert picture description here

9、 Modify... In the configuration file devname Variables and home_path

 Insert picture description here

10、 Save the configuration file after modification

 Insert picture description here

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

 Insert picture description here

[[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

 Insert picture description here
 Insert picture description here

[[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 .
 Insert picture description here

 Insert picture description here

原网站

版权声明
本文为[Prodigal son Wu Tian]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207061155316638.html