当前位置:   article > 正文

oceanbase安装_linux 单机安装oceanbase

linux 单机安装oceanbase

环境信息: CentOS Linux release 7.2.1511
安装版本: 3.1.0 单机

1、安装步骤
通过 YUM 软件源安装 OBD

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo
sudo yum install -y ob-deploy
  • 1
  • 2
  • 3

2、部署 OceanBase 数据库
2.1、增加配置文件
本地安装:即中控机器和目标机器是同一台机器,配置文件
单机安装:即中控机器和目标机器不是同一台机器,且目标机器只有一台,配置文件
分布式安装:配置文件
配置信息如下

[root@xlucas1 oceanbase]# pwd
/opt/oceanbase
[root@xlucas1 oceanbase]# cat mini-local-example.yaml 
oceanbase-ce:
  servers:
    # Please don't use hostname, only IP can be supported
    - 127.0.0.1
  global:
    home_path: /opt/oceanbase/data
    #这个路径一定要是是空的,否则会安装失败
    # Please set devname as the network adaptor's name whose ip is  in the setting of severs.
    # if set severs as "127.0.0.1", please set devname as "lo"
    # if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
    devname: lo
    mysql_port: 2883
    rpc_port: 2882
    zone: zone1
    cluster_id: 1
    datafile_size: 8G
    # please set memory limit to a suitable value which is matching resource. 
    memory_limit: 8G
    system_memory: 4G
    stack_size: 512K
    cpu_count: 16
    cache_wash_threshold: 1G
    __min_full_resource_pool_memory: 268435456
    workers_per_cpu_quota: 10
    schema_history_expire_time: 1d
    # The value of net_thread_count had better be same as cpu's core number. 
    net_thread_count: 4
    sys_bkgd_migration_retry_num: 3
    minor_freeze_times: 10
    enable_separate_sys_clog: 0
    enable_merge_by_turn: FALSE
    datafile_disk_percentage: 20
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35

2.2、安装
注意这个路径是需要指定到配置文件

[root@xlucas1 oceanbase]# obd 
    声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/553776
    推荐阅读
    相关标签
      

    闽ICP备14008679号