查看日志,报错:too many open file
(1)设置打开文件的最大数值
# ulimit -a
# ulimit -n 65535
# vim /etc/security/limits.conf
新增内容:
* soft nofile 65535
* hard nofile 65535
(2)
echo 655360 > /proc/sys/fs/file-max
编辑文件/etc/sysctl.conf,插入下行。
查看日志,报错:too many open file
(1)设置打开文件的最大数值
# ulimit -a
# ulimit -n 65535
# vim /etc/security/limits.conf
新增内容:
* soft nofile 65535
* hard nofile 65535
(2)
echo 655360 > /proc/sys/fs/file-max
编辑文件/etc/sysctl.conf,插入下行。