1、檢查打開文件最大連接數
# ulimit -n
2、在limit.conf文件中加入如下:
# vi /etc/security/limit.conf
* soft nofile 65536
* hard nofile 65536
3、使最大文件打開數當時生效
# ulimit -n 65536
# ulimit -n
這只是暫時生效,重啓後永久生效
1、檢查打開文件最大連接數
# ulimit -n
2、在limit.conf文件中加入如下:
# vi /etc/security/limit.conf
* soft nofile 65536
* hard nofile 65536
3、使最大文件打開數當時生效
# ulimit -n 65536
# ulimit -n
這只是暫時生效,重啓後永久生效