话不多说,上主菜。
使用root用户执行以下命令:
第一步:ulimit -n 65535
第二步:sysctl fs.file-max=655360
第三步:在/etc/security/limits.conf
添加以下2行参数值
* soft nofile 65536
* hard nofile 65536
如果没生效,reboot一下。使用ulimit -a 可以查看是否修改成功。
话不多说,上主菜。
使用root用户执行以下命令:
第一步:ulimit -n 65535
第二步:sysctl fs.file-max=655360
第三步:在/etc/security/limits.conf
添加以下2行参数值
* soft nofile 65536
* hard nofile 65536
如果没生效,reboot一下。使用ulimit -a 可以查看是否修改成功。