http://www.forasp.cn/
 nginx 日志中出现 poll_create() failed (23: Too many open files in system) ,网站一直打不开

上面的意思是文件打开句柄很多了 不能创建新的了。
修改如下
1. 修改系统句柄打开数量
vim /etc/security/limits.conf
新增加 或者修改
*    soft    nofile    65535
*    hard    nofile    65535

或者
nginx    soft    nofile    65535
nginx    hard    nofile    65535

2. 修改nginx 句柄打开数量
在nginx/etc/nginx.conf配置文件新增下面的红色的内容

worker_rlimit_nofile 16384;
 
events {
    worker_connections  16384;
    use epoll;
}

这样就解决了 poll_create() failed (23: Too many open files in system)  的问题。
网站http://www.制forasp作.cn