vi nginx.conf
events {
# worker_connections – max number of concurrent connections
# not only clients, but also connections with proxy_pass
# worker_connections < worker_rlimit_nofile
#worker_connections 1024;
worker_connections 8192;
# multi_accept on;
# use kqueue; for freebsd
use epoll;
}