We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 设置系统的文件句柄最大数量
vim /etc/sysctl.conf
fs.file-max = 1000000 sysctl -p /etc/sysctl.conf fs.file-max = 1000000
cat /proc/sys/fs/file-nr
864 0 1000000
2 设置进程的ulimit 可以打开的句柄数量
vi /etc/security/limits.conf
* soft core unlimited * soft nofile 1000000 * hard nofile 1000000
3 设置内核网络层连接追踪表的最大条目数
vi /etc/sysctl.conf
net.nf_conntrack_max = 1000000
sysctl -p /etc/sysctl.conf