注意事项
obd适合新手入门学习,不建议在生产环境使用~~
逻辑
下载安装包并解压---->./install.sh 安装---->加载环境变量---->obd demo部署初始化
–查看当前环境已下载的安装包
[root@wsxdba soft]# ls|grep oceanbase
oceanbase-all-in-one
oceanbase-all-in-one-4.3.5_20250115.el7.x86_64.tar.gz
--解压安装包
tar -xzf oceanbase-all-in-one-*.tar.gz
--执行安装命令
cd oceanbase-all-in-one/bin/
./install.sh#####################################################################
Install Finished
=====================================================================
Setup Environment: source ~/.oceanbase-all-in-one/bin/env.sh
Start Web Service: obd web
Quick Start: obd demo
More Details: obd -h
=====================================================================
[root@xxxxx bin]#
--加载环境变量
source ~/.oceanbase-all-in-one/bin/env.sh
--快速部署oceanbase
obd demo
demo running
Trace ID: 560d174c-6818-11ee-a932-00163e0b7038
If you want to view detailed obd logs, please run: obd display-trace 560d174c-6818-11ee-a932-00163e0b7038
--验证部署是否成功
obclient -h127.0.0.1 -P2883 -uroot -Doceanbase -A
Welcome to the OceanBase. Commands end with ; or \g.
Your OceanBase connection id is 2
Server version: OceanBase_CE 4.2.1.0 (r100010022023081817-0bdf1c0c5674e88c5ae9a8d0ae4f8077465d7fae) (Built Aug 18 2023 17:32:49)
Copyright (c) 2000, 2018, OceanBase and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
obclient(root@(none))[oceanbase]>
[root@wsxdba soft]# ps -ef|grep obproxy
root 42883 1 0 01:26 pts/0 00:00:00 bash /root/obproxy-ce/obproxyd.sh /root/obproxy-ce 127.0.0.1 2883 daemon
root 42900 1 1 01:26 ? 00:00:14 /root/obproxy-ce/bin/obproxy --listen_port 2883
root 47852 11204 0 01:40 pts/0 00:00:00 grep --color=auto obproxy
[root@wsxdba soft]#[root@wsxdba soft]# ps -ef|grep observer
root 40963 1 32 01:09 ? 00:10:08 /root/oceanbase-ce/bin/observer -p 2881 -P 2882 -z zone1 -n demo -c 1742313150 -d /root/oceanbase-ce/store -I 127.0.0.1 -o __min_full_resource_pool_memory=1073741824,enable_syslog_wf=False,max_syslog_file_count=4,memory_limit=6G,system_memory=1G,cpu_count=16,datafile_size=2G,datafile_maxsize=8G,datafile_next=2G,log_disk_size=14G,enable_record_trace_log=False,enable_syslog_recycle=1
root 47894 11204 0 01:40 pts/0 00:00:00 grep --color=auto observer
--附件
obd cluster list # 查看ob状态
obd cluster restart demo # 重启启动ob
obd display-trace c58762c6-041b-11f0-9a5c-000c29f3df38 # 查看日志输出
obd clustr display demo # 获取日志路径
tail -n 100 observer.log # 查看错误日志
~/.obd/cluster/demo/config.yam # 配置文件
--重新部署
obd cluster destroy demo obd cluster deploy demo -c /path/to/your_modified_config.yaml obd cluster start demo




