目录
一、准备工作
一、安装文件
二、禁用防火墙
三、修改内核参数
四、上传文件
二、安装kingbase
三、kingbase的使用
一、kingbase启动与停止
二、数据管理
三、命令行常用命令
一、准备工作
1.操作系统 : CentOS7 x86_64
2.数据库KingbaseES_V
List item008R006C006B0013_Lin64_install.iso 镜像
一、安装文件
安装包官网下载地址 人大金仓-成为世界卓越的数据库产品与服务提供商
授权文件(在安装数据库时会提示输入授权文件路径,因此,证书下载后上传到服务器,例如上传到 /opt/license_18720_0.dat)
二、禁用防火墙
systemctl stop firewalld
systemctl disable firewalld
三、修改内核参数
修改文件命令:vim /etc/sysctl.conf
添加如下内容:
fs.aio-max-nr= 1048576
fs.file-max= 6815744
kernel.shmall= 2097152
kernel.shmmax= 4294967295
kernel.shmmni= 4096
kernel.sem= 250 32000 100 128
net.ipv4.ip_local_port_range= 9000 65500
net.core.rmem_default= 262144
net.core.rmem_max= 4194304
net.core.wmem_default= 262144
net.core.wmem_max= 1048576
执行如下命令,使内核参数的修改生效:
sysctl -p
四、上传文件
上传iso安装文件和授权文件到 /opt 目录
二、安装kingbase
1.进入到cd /opt
创建目录: mkdir /kingbase
将文件挂载到目录kingbas下:
mount /opt/KingbaseES_V008R006C005B0054_Lin64_install.iso /kingbase
2.由于不⽀持以root执⾏安装脚本,必须⾮root⽤户执⾏,所以先创建⼀个普通⽤户⽤来执⾏安装脚本 创建用户:
useradd kingbase
创建一个目录供数据库安装时使用,并设置有写入权限:
mkdir /opt/KingBase
chmod -R 777 /opt/KingBase
3.切换到kingbase用户安装数据库
su - kingbase
sh /kingbase/setup.sh
4.根据提示进行安装 可以enter默认安装
[kingbase@hadoop4 opt]$ sh /kingbase/setup.sh
Now launch installer...
tee: .installer.log: 只读文件系统
Preparing to install
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system\'s envir
onment..
Launching installer...
Graphical installers are not supported by the VM. The console mode will be used instead...
===============================================================================
KingbaseES V8
网址:www.kingbase.com.cn
全国服务热线:400-601-1188
技术支持邮箱:support@kingbase.com.cn
是否接受此许可协议条款? (Y/N): Y
==============================================================================
选择安装集
请选择将由本安装程序安装的“安装集”。
->1- 完全安装
2- 客户端安装
3- 定制安装
输入“安装集”的号码,或按 <ENTER> 键以接受缺省值:
===============================================================================
选择授权文件
------
文件路径: /opt/license_18720_0.dat
License序列号 --- 启用 --- 74FE7946-4378-11EC-AE8E-000C29CBE49F
生产日期 --- 启用 ---