nginx网页报 cannot open more files的处理方法
2017-02-09 14:18
519 查看
1,内核级别$ vi /etc/sysctl.conf加上fs.file-max设置fs.file-max = 100000然后重新载入核心配置$ sysctl -p2,系统级别:修改etc/security/limits.conf中软限制和硬限制数。* soft nofile 10240* hard nofile 15360其中第一行soft表示所有用户打开文件的数量限制为10240,如果超过这个数字则提示警告信息,但是依然可以打开文件。第二行hard表示最大的打开文件数量不能超过15360,如果超过这个数字,则无法打开文件。这里也可以针对具体的用户或者用户组进行相应的设定。例如针对nginx这个用户进行设定:nginx soft nofile 10240nginx hard nofile 15360
3,应用级别:修改nginx的配置文件 添加work_rlimit_nofile=65535
3,应用级别:修改nginx的配置文件 添加work_rlimit_nofile=65535
相关文章推荐
- nginx无法启动提示libpcre.so.1: cannot open shared object file的解决方法
- 关于vs2013 安装后出现"Cannot find one of more components. Please reinstall the application"处理方法
- nginx:accept() failed (24: Too many open files)解决方法
- too many open files的处理方法
- nginx: [error] open() "/usr/local/var/run/nginx.pid" failed (2: No such file or directory)处理方法
- 网页中的图片的处理方法
- IE打不开网页常见的原因及处理方法
- 编译安装php时提示Cannot find MySQL header files的解决方法
- 初学C++:编译器报错“Cannot open include file: 'iostream.h': No such file or directory”的解决方法
- 重要!当打开MMC或者inetmgr时提示“Cannot Open xxx.msc”,就用以下解决方法,安装至少MSXML3SP4然后重起就解决问题。
- fatal error C1083 Cannot open include file 'iostream.h' No such file or directory 的解决方法
- one or more files from the emulator for windows ce installation is missing 解决方法
- JBoss下"Too many open files"的解决方法
- nginx文件类型错误解析漏洞及处理方法
- FTP 450 Cannot open file故障处理
- QWebView使用SIMSUN字体时,遇到网页按钮字体显示不正常处理方法
- fatal error C1083: Cannot open include file: ' VS2005中添加 include 目录方法
- 关于IE7打开任何网页弹出[未处理的异常('对象不支持此属性或方法')发生在iexplorer.exe]错误调试框的解决办法
- 很经典-网页恶意代码的现象及处理方法 [转载]
- 网页突然打不开的一种处理方法