用来做个人记录的
一、初始化操作系统环境
1、准备dm用户
groupadd dinstall -g 2001
useradd -m -s /bin/bash -g dinstall dmdba -u 2001
2、关闭防火墙、SELinux
sed -i '/^SELINUX=/cSELINUX=disabled' /etc/selinux/config
systemctl stop firewalld
systemctl disable firewalld
3、修改dmdba用户资源限制
cat /etc/security/limits.conf
dmdba - nofile 131072
dmdba - nproc 131072
dmdba - data unlimited
4、修改内核参数
cat /etc/sysctl.conf
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
vm.swappiness = 0
vm.dirty_background_ratio = 3
vm.dirt