专业的编程技术博客社区

网站首页 > 博客文章 正文

OceanBase4.3 单机安装(亲测有效)

baijin 2024-09-12 11:15:07 博客文章 16 ℃ 0 评论

一、安装前的一些准备工作

1.修改内核参数

命令代码:vi /etc/sysctl.conf

net.core.somaxconn=2048

net.core.netdev_max_backlog =10000

net.core.rmem_default =16777216

net.core.wmem_default=16777216

net.core.rmem_max=16777216

net.core.wmem_max=16777216

net.ipv4.ip_local_port_range 3500 65535

net.ipv4.ip_forward= 0

net.ipv4.conf.default.rp_filter= 1

net.ipv4.conf.default.accept_source_route=0

net.ipv4.tcp_syncookies=0

net.ipv4.tcp_rmem=4096 87380 16777216

net.ipv4.tcp_wmem=4096 65536 16777216

net.ipv4.tcp_max_syn_backlog=16384

net.ipv4.tcp_fin_timeout=15

net.ipv4.tcp_max_syn_backlog= 16384

net.ipv4.tcp_tw_reuse = 1

net.ipv4.tcp_tw_recycle= 1

net.ipv4.tcp_slow_start_after_idle=0

vm.swappiness = 0

vm.min_free_kbytes =2097152

vm.max_map_count=655360

fs.aio-max-nr=1048576

让配置生效: sysctl -p

  1. 修改资源限制

命令代码:vi /etc/security/limits.conf

root soft nofile 655350

root hard nofile 655350

* soft nofile 655350

* hard nofile 655350

* soft stack unlimited

* hard stack unlimited

* soft nproc 655360

* hard nproc 655360

* soft core unlimited

* hard core unlimited

  1. 关闭防火墙

systemctl disable firewalld

systemctl stop firewalld


  1. 安装Oceanbase

(1)下载上传Oceanbase All in One

(2)解压安装包

tar -xzf oceanbase-all-in-one-4.3.1.0-100000032024051615.el7.x86_64.tar.gz

(3)执行安装

进入解压目录 oceanbase-all-in-one

./bin/install.sh

  1. 安装结束

(1)设置环境:source ~/.oceanbase-all-in-one/bin/env.sh

(2)执行 obd web 命令启动白屏界面

1.登录WEB白屏界面

注:360浏览器选择极速模式


2.节点配置

在 节点配置 页面输入机器 IP (此处为单击安装,IP直接为127.0

0.1)和用户密码,单击 下一步 进入 集群配置 页面。

之后按步骤部署完成,随后配置租户

三、通过DBeaver连接数据库

1、连接数据库

2、打开表格

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表