Policy Information
Kingbase V9单机版部署
1、按实施规范要求创建目录:
1、install:安装软件存储目录
2、backup:备份目录
3、archive:存档目录
4、data:数据存储目录
5、KingbaseES:KES安装目录
6、端口:54321
7、SYSTEM密码:Kingbase
8、数据库编码格式:UTF8
2、创建用户
useradd kingbase
passwd kingbase
newgrp kingbase
gpasswd -a kingbase kingbase
3、执行脚本
mkdir -p /Kingbase/ES/V8 /data /backup /archive /install
chown -R kingbase:kingbase /Kingbase/ES
chown -R kingbase:kingbase /data &
chown -R kingbase:kingbase /backup&
chown -R kingbase:kingbase /archive&
chown -R kingbase:kingbase /install
chmod -R 775 /Kingbase/ES
chmod -R 775 /backup
chmod -R 775 /archive
chmod -R 777 /install
chmod -R 700 /data
ls -l / | grep kingbase
4、上传安装包、检查MD5、解压
cd /install
ls -l KingbaseES_V008R006C007B0024_Lin64_install.iso
md5sum KingbaseES_V008R006C007B0024_Lin64_install.iso
su
mount -o loop KingbaseES_V008R006C007B0024_Lin64_install.iso /mnt
ls -l /mnt
5、使用KingBase用户复制挂载后的安装文件到/install下。
mkdir /install/KES-V8R6_C5B23-INSTALL
cp -r /mnt/* /install/KES-V8R6_C5B23-INSTALL
ll -l /install/KES-V8R6_C5B23-INSTALL
6、安装
1、图形化安装;
2、字符界面安装
2.1、进入安装目录
cd /install/KES-V8R6_C5B23-INSTALL
bash setup.sh -i console
2.2、重启后确认Kingbase进程自动启动
ps -xf| grep -v grep| grep -i 'kingbase'
2.3、确认是否能进入系统
/KingbaseES/V8/Server/bin/ksql test system
2.4、重启后确认Kingbase服务自动启动
方法1:systemctl list-dependencies | grep kingbase
方法2:chkconfig --list | grep kingbase (只看2/3/4/5列)
7、修改环境变量
vi /home/kingbase/.bashrc
export PATH=/Kingbase/ES/V9/Server/binPATH
export KINGBASE_DATA=/Kingbase/ES/V9/data
--让环境变量生效
source /home/kingbase/.bashrc
8.通过Ksql登录
ksql test system
评论