金仓数据库脚本部署

  • 库集群安装文档
  1. 关闭防火墙及操作系统参数调整

注:以下操作所有节点执行

  1. 、关闭防火墙

systemctl stop firewalld

systemctl disable firewalld

vim /etc/selinux/config

  1. 操作系统参数调整

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. 创建用户、安装目录以及上传安装包

(1)、创建用户

useradd -U -m kingbase

passwd kingbase 密码根据需求设定

2)、创建上传目录和安装目录

mkdir -p /home/kingbase/install

m

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值