修改服务器开启得最大文件数量和进程
vim /etc/security/limits.conf
* soft nofile 65535 * hard nofile 65535 * soft nproc 65535 * hard nproc 65535
* 代表所有用户
nofile 代表打开文件数量
nproc 代表开发进程
soft 软限制,超过这个值警告
hard 硬限制,超过这个值报错,一般soft<hard,但也可以相等
vim /etc/security/limits.conf
* soft nofile 65535 * hard nofile 65535 * soft nproc 65535 * hard nproc 65535
* 代表所有用户
nofile 代表打开文件数量
nproc 代表开发进程
soft 软限制,超过这个值警告
hard 硬限制,超过这个值报错,一般soft<hard,但也可以相等