单机部署 oceanbase 数据库。
https://www.oceanbase.com/docs/community-obd-cn-1000000001882017
sudo vim /etc/security/limits.conf
* soft nofile 20000
* hard nofile 20000
obd cluster deploy obproduct -c my.yaml
obd cluster start obproduct
obd cluster display obproduct
obclient -h127.0.0.1 -P2881 -uroot@sys -p’密码’ -Doceanbase -A
创建 oceanbase.service
[Unit]
Description=oceanbase
After=network.target
[Service]
Type=forking
User=admin
ExecStart=/usr/bin/obd cluster start obproduct
ExecStop=/usr/bin/obd cluster stop obproduct
ExecReload=/usr/bin/obd cluster restart obproduct
LimitNOFILE=165535
LimitNPR0C=165535
[Install]
WantedBy=multi-user.target
配置 oceanbase自启动
sudo systemctl daemon-reload
sudo systemctl enable oceanbase.service
sudo systemctl start oceanbase.service