文章目录
1 远程下载KingBase的授权文件、iso包
[root@localhost ~]# cd /opt/package
[root@localhost package]# wget https://kingbase.oss-cn-beijing.aliyuncs.com/KESV8R3/V008R006C008B0014/KingbaseES_V008R006C008B0014_Lin64_install.iso
[root@localhost package]# wget https://kingbase.oss-cn-beijing.aliyuncs.com/KESV8R3/license_%E4%BC%81%E4%B8%9A%E7%89%88.zip
注:下载KingBase的iso包前,先查看Linux系统的架构,我是x86 64
2 添加用户,创建目录
[root@localhost package]# useradd kingbase
[root@localhost package]# mkdir -p /opt/Kingbase
[root@localhost package]# mkdir -p /install/Kingbase
3 解压KingBase的授权文件,挂载iso包
[root@localhost package]# unzip license_企业版.zip
[root@localhost package]# scp license_29296/license_29296_0.dat /opt/Kingbase/license.dat
[root@localhost package]# mount KingbaseES_V008R006C008B0014_Kunpeng64_install.iso /install/Kingbase
4 授权目录
[root@localhost package]# chown kingbase /opt/Kingbase -R
[root@localhost package]# chown kingbase /install/ -R
5 控制台安装
[root@localhost package]# cd /install/Kingbase
[root@localhost Kingbase]# su - kingbase
[kingbase@localhost Kingbase]$ ./setup.sh
选择授权文件File Path: /opt/Kingbase/license.dat
以下请根据自己情况设置:
Server Encoding UTF8
Database Mode 数据库兼容模式 ORACLE
Case Sensitivity 字符大小写敏感特性NO
Block Size 8k
Encrypt Method sm4
Authentication Method scram-sha-256
最后将人大金仓设置为一个系统服务:
6 注册服务
[kingbase@localost Kingbase]$ su root
[root@localhost Kingbase]# /opt/Kingbase/ES/V8/install/script/root.sh
7 修改配置文件
[root@localhost ~]# vi /opt/package/Kingbase/ES/V8/data/kingbase.conf
输入Go
设置模式
sql_mode=‘’
8 重启服务
[root@localhost ~]# su kingbase
[kingbase@localhost ~]$ cd /opt/Kingbase/ES/V8/KESRealPro/V008R006C008B0014/Server/bin
[root@localhost bin]$ ./sys_ctl -D /opt/Kingbase/ES/V8/data reload
附录
-bash: wget: 未找到命令
1、首先查看系统是否安装了wget
[root@localhost ~]# rpm -qa|grep 'wget'
如果什么都没返回,则代表没有 安装过
2、执行安装命令,并等待进度条执行完毕
[root@localhost ~]# yum -y install wget
查看Linux系统的架构
[root@localhost ~]# uname -m
参考文档
https://blog.51cto.com/u_11529070/8624976
https://blog.csdn.net/qq_57052445/article/details/130427207