ubuntu limit设置

19-10-22 19:30 793  

``` echo "* soft nproc 1000000" >>/etc/security/limits.conf echo "* hard nproc 1000000" >>/etc/security/limits.conf echo "* soft nofile 1000000" >>/etc/security/limits.conf echo "* hard nofile 1000000" >>/etc/security/limits.conf echo "root soft nproc 1000000" >>/etc/security/limits.conf echo "root hard nproc 1000000" >>/etc/security/limits.conf echo "root soft nofile 1000000" >>/etc/security/limits.conf echo "root hard nofile 1000000" >>/etc/security/limits.conf sed '31 isession required pam_limits.so' -i /etc/pam.d/common-session sed '30 isession required pam_limits.so' -i /etc/pam.d/common-session-noninteractive ``` sed '12 iminfds=1000000' -i /etc/supervisor/supervisord.conf