调整文件描述符等
cat >> /etc/pam.d/login <<EOF
session required /lib64/security/pam_limits.so
session required pam_limits.so
EOF
scp /etc/security/limits.conf /etc/security/limits.conf.bak
true > /etc/security/limits.conf
cat >> /etc/security/limits.conf <<EOF
* soft nofile 65536
* hard nofile 65536
* soft nproc 16384
* hard nproc 16384
* soft stack 10240
* hard stack 32768
EOF
scp /etc/security/limits.d/20-nproc.conf /etc/security/limits.d/20-nproc.conf.bak
true > /etc/security/limits.d/20-nproc.conf
cat >> /etc/security/limits.d/20-nproc.conf<<EOF
* soft nproc unlimited
* hard nproc unlimited
EOF
echo 8061540 > /proc/sys/fs/file-max