nginx出现错误Too many open files
血的教训
编辑/etc/security/limits.conf在末尾添加如下内容
* soft nofile 1000000 * hard nofile 1000000
添加完效果如下
然后nginx的配置文件添加如下配置
worker_rlimit_nofile 10240; events { worker_connections 10240; }
nginx出现错误Too many open files
血的教训
编辑/etc/security/limits.conf在末尾添加如下内容
* soft nofile 1000000 * hard nofile 1000000
添加完效果如下
然后nginx的配置文件添加如下配置
worker_rlimit_nofile 10240; events { worker_connections 10240; }