ulimit -n <文件数目> 指定同一时间最多可开启的文件数。
列出所有打开的文件: # lsof
lsof | wc -l
oracle soft nofile 65536
oracle hand nofile 65536
oracle soft nproc 16384
oracle hand nproc 16384
oracle hand nofile 65536
oracle soft nproc 16384
oracle hand nproc 16384
* soft nofile 1048576
* hard nofile 1048576
* - nofile 102401
/etc/security/limits.conf文件中加入下列红色行:
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384