人大金仓安装记录

前期工作

sudo useradd kingbase
sudo mkdir /home/kingbase/KingbaseES/V8
# 源码目录
sudo chown -R kingbase:kingbase /home/kingbase/KingbaseES/V8
# 安装目录
sudo chown -R kingbase:kingbase /opt/Kingbase/ES/V8

内核参数

qlz@uos:~$ sudo sudo /sbin/sysctl -a | grep sem
kernel.sem = 32000  1024000000  500 32000
kernel.sem_next_id = -1
qlz@uos:~$ sudo /sbin/sysctl -a | grep shm
kernel.shm_next_id = -1
kernel.shm_rmid_forced = 0
kernel.shmall = 18446744073692774399
kernel.shmmax = 18446744073692774399
kernel.shmmni = 4096
vm.hugetlb_shm_group = 0
qlz@uos:~$ sudo  /sbin/sysctl -a | grep file-max
fs.file-max = 9223372036854775807
qlz@uos:~$ sudo /sbin/sysctl -a | grep ip_local_port_range
net.ipv4.ip_local_port_range = 32768    60999
qlz@uos:~$ sudo  /sbin/sysctl -a | grep rmem_default
net.core.rmem_default = 212992
qlz@uos:~$ sudo /sbin/sysctl -a | grep rmem_max
net.core.rmem_max = 212992
qlz@uos:~$ sudo  /sbin/sysctl -a | grep wmem_default
net.core.wmem_default = 212992
qlz@uos:~$ sudo /sbin/sysctl -a | grep wmem_max
net.core.wmem_max = 212992
qlz@uos:~$ sudo  /sbin/sysctl -a | grep aio-max-nr
fs.aio-max-nr = 65536
qlz@uos:~$ sudo /sbin/sysctl -a | grep tcp_wmem
net.ipv4.tcp_wmem = 4096    16384   4194304
qlz@uos:~$ sudo /sbin/sysctl -a | grep tcp_rmem
net.ipv4.tcp_rmem = 4096    131072  6291456

修改内核参数再检查是否与上面的值相同

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
sysctl -a
恭喜!KingbaseES V8 已成功地安装到:

/opt/Kingbase/ES/V8

如果您需要将 KingbaseES V8 注册为系统服务,请运行

    /opt/Kingbase/ES/V8/install/script/root.sh

按  键以退出安装程序: 

数据迁移

image.png
image.png
image.png

你可能感兴趣的:(人大金仓安装记录)