使用 TAR 包快速部署 StoneDB
步骤 1:安装 StoneDB
- 下 载 StoneDB 软件包。
wget https://github.com/stoneatom/stonedb/releases/download/5.7-v1.0.4-alpha/stonedb-ce-5.7-v1.0.4-alpha.el7.x86_64.tar.gz
- 解压软件包。
tar -vxf stonedb-ce-5.7-v1.0.4-alpha.el7.x86_64.tar.gz -C /opt/
- 映射依赖包。
source /opt/stonedb57/install/bin/sourceenv
- 创建用户 mysql 并授予用户 mysql 访问 /opt 目录的权限。
groupadd mysql
useradd -g mysql mysql
passwd mysql
chown -R mysql:mysql /opt
- 初始化数据库。
/opt/stonedb57/install/bin/mysqld --defaults-file=/opt/stonedb57/install/my.cnf --initialize --user=mysql