tools/systemd/README.md
If you want to deploy OceanBase on a Linux RPM platform, you can use yum/apt for single-node installation and simple management with systemd.
WARNING
Config yum repo then install OceanBase, it will automatically install the required dependencies.
yum install -y yum-utils
yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo
yum install -y oceanbase-ce
Config apt repo then install OceanBase, it will automatically install the required dependencies.
apt update
apt install -y lsb-release wget gnupg2 mysql-client curl
wget http://mirrors.oceanbase.com/oceanbase/oceanbase_deb.pub && apt-key add oceanbase_deb.pub
echo "deb http://mirrors.oceanbase.com/oceanbase/community/stable/$(lsb_release -is | awk '{print tolower($0)}')/$(lsb_release -cs)/$(dpkg --print-architecture)/ ./" | tee -a /etc/apt/sources.list.d/oceanbase.list
apt update
apt install -y oceanbase-ce
| dependency | version |
|---|---|
| oceanbase-ce-libs | same version with oceanbase-ce |
| jq | / |
| oniguruma | / |
| curl | / |
You can install and run OceanBase service using the following command:
systemctl start oceanbase
You can set the OceanBase service to start automatically on boot using the following command:
systemctl enable oceanbase
Systemd provides automatic OceanBase startup and shutdown. It also enables manual server management using the systemctl command. For example:
systemctl {start|stop|restart|status} oceanbase
Systemd provide /etc/oceanbase.cnf to config OceanBase before startup.