ip=127.0.0.1:OceanBase 服务的监听 IP 地址。
mysql_port=2881:MySQL 协议的端口号。
rpc_port=2882:RPC 通信的端口号。
obshell_port=2886:OceanBase Shell 的端口号。
root_pwd="":root 用户的密码,默认为空。
redo_dir=/Data/oceanbase/redo:redo 日志的存储目录。
data_dir=/Data/oceanbase/data:数据文件的存储目录。
datafile_size=2G:数据文件的初始大小。
datafile_next=2G:数据文件扩展时每次增加的大小。
datafile_maxsize=20G:数据文件的最大大小。
cpu_count=16:可用的 CPU 核心数量。
memory_limit=6G:OceanBase 实例的内存限制。
system_memory=1G:系统保留的内存大小。
log_disk_size=13G:日志磁盘的大小。
enable_syslog_wf=true:是否启用 syslog 的警告和错误日志。
enable_syslog_recycle=true:是否启用 syslog 日志的循环使用。
max_syslog_file_count=10:syslog 日志文件的最大数量。
__min_full_resource_pool_memory=1073741824 表示资源池的最小内存限制为 1073741824 字节,
即 1 GB。
--修改 OceanBase 安装目录(默认是 /home/admin/oceanbase)下 etc 目录的属主
sudo chown root /home/admin/oceanbase/etc
[admin@wsxdba ~]$ ls -ld /home/admin/oceanbase/etc
drwxr-sr-x. 2 admin admin 4096 3 月 20 14:37 /home/admin/oceanbase/etc
[admin@wsxdba ~]$ sudo chown root /home/admin/oceanbase/etc
[admin@wsxdba ~]$ ls -ld /home/admin/oceanbase/etc
drwxr-sr-x. 2 root admin 4096 3 月 20 14:37 /home/admin/oceanbase/etc
[admin@wsxdba ~]$
--启动数据库
[admin@wsxdba ~]$ sudo systemctl status oceanbase
● oceanbase.service - oceanbase
Loaded: loaded (/etc/systemd/system/oceanbase.service; disabled; vendor
preset: disabled)
Active: active (running) since 四 2025-03-20 15:26:41 CST; 2min 56s ago
Process: 23274 ExecStart=/bin/bash /home/admin/oceanbase/profile/oceanbase-
service.sh start (code=exited, status=0/SUCCESS)
Main PID: 24052 (observer)
Tasks: 360
CGroup: /system.slice/oceanbase.service
├─23881 /home/admin/oceanbase/bin/obshell daemon --ip 127.0.0.1 --port
2886
├─23903 /home/admin/oceanbase/bin/obshell server --ip 127.0.0.1 --port
2886
└─24052 /home/admin/oceanbase/bin/observer -n ob -p 2881 -P 2882 -c 1
-d /home/admin/oceanbase/store -z zone1 -I 127.0.0.1 -...
3 月 20 15:26:17 wsxdba bash[23274]: wait 6s and the retry
3 月 20 15:26:23 wsxdba bash[23274]: the response state is RUNNING
3 月 20 15:26:23 wsxdba bash[23274]: wait 6s and the retry
3 月 20 15:26:29 wsxdba bash[23274]: the response state is RUNNING
3 月 20 15:26:29 wsxdba bash[23274]: wait 6s and the retry
3 月 20 15:26:35 wsxdba bash[23274]: the response state is RUNNING
3 月 20 15:26:35 wsxdba bash[23274]: wait 6s and the retry
评论