三、修改内核参数
修改
/etc/sysctl.conf
文件
vim /etc/sysctl.conf
添加以下内容
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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 = 1048586
使配置生效
/sbin/sysctl –p
四、修改用户限制
修改
/etc/security/limits.conf
文件
vim /etc/security/limits.conf
添加如下参数:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
五、修改用户验证
修改
/etc/pam.d/login
文件
vim /etc/pam.d/login
加上如下参数:
session required pam_limits.so
六、修改用户配置文件
评论