- 库集群安装文档
- 关闭防火墙及操作系统参数调整
注:以下操作所有节点执行
- 、关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
vim /etc/selinux/config
- 、操作系统参数调整
vim /etc/systemd/logind.conf
RemoveIPC=no(需要修改的参数)
vim /etc/systemd/system.conf
DefaultTasksAccounting=no(需要修改的参数)
vim /etc/security/limits.conf 追加写入以下参数
root hard core unlimited
root soft nproc unlimited
root hard nproc unlimited
root soft nofile 65535
root hard nofile 65535
kingbase soft nproc unlimited
kingbase hard nproc unlimited
kingbase soft nofile 65535
kingbase hard nofile 65535
vim /etc/sysctl.conf,追加在后面
kernel.sem = 50100 64128000 50100 1280
net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_keepalive_probes = 3
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.ip_local_port_range = 10000 65000
net.ipv4.tcp_max_tw_buckets = 6000
net.ipv4.tcp_max_syn_backlog = 65536
net.core.netdev_max_backlog = 32768
net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 2
net.ipv4.route.gc_timeout = 100
net.ipv4.tcp_wmem = 8192 436600 873200
net.ipv4.tcp_rmem = 32768 436600 873200
net.ipv4.tcp_mem = 94500000 91500000 92700000
net.ipv4.tcp_max_orphans = 3276800
vm.swappiness=1
保存退出之后使用命令systemctl -p生效
- 创建用户、安装目录以及上传安装包
(1)、创建用户
useradd -U -m kingbase
passwd kingbase 密码根据需求设定
(2)、创建上传目录和安装目录
mkdir -p /home/kingbase/install
m