* soft nofile 65535
* hard nofile 65535
fs.file-max=65536
3>. nginx配置文件nginx.conf,增加:
worker_rlimit_nofile 65535;
#etc profile
cmd=`/bin/cat /etc/profile|grep 'ulimit -S -c 0'|grep -v '^#'`
if [ $cmd ]
then
/bin/sed -i 's/ulimit -S -c 0/#&/' /etc/profile
fi