1、检查打开文件最大连接数

# ulimit -n

2、在limit.conf文件中加入如下:

# vi /etc/security/limit.conf

* soft nofile 65536
* hard nofile 65536

3、使最大文件打开数当时生效

# ulimit -n 65536

# ulimit -n

这只是暂时生效,重启后永久生效