Skip to main content

ulimit 修改

临时修改

ulimit -HSn 65536
ulimit -c unlimited

永久修改

/etc/security/limits.conf

# open files  (-n)
* soft nofile 65536
* hard nofile 65536
root soft nofile 65536
root hard nofile 65536

# max user processes (-u)
* soft nproc 65565
* hard nproc 65565
root soft nproc 65565
root hard nproc 65565