修改 ulimit
echo "session required pam_limits.so" >> /etc/pam.d/common-session #CentOS #echo "session required /usr/lib64/security/pam_limits.so" >> /etc/pam.d/login echo "* soft nofile 51200 " >> /etc/security/limits.conf echo "* hard nofile 51200 " >> /etc/security/limits.conf sed -i '1 i\ulimit -SHn 51200' /etc/profile ulimit -SHn 51200