nginx: [warn] 4000 worker_connections exceed open file resource limit: 1024
来源:互联网 发布:mysql in or 编辑:程序博客网 时间:2024/06/05 12:41
root@d924608c6b73:/home/VodSvr/bin# ./bin/hlssvr -p /home/VodSvr/bin/www/
nginx: [warn] 4000 worker_connections exceed open file resource limit: 1024
root@d924608c6b73:/home/VodSvr/bin#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
* - nofile 65535
* - noproc 65535
* soft nofile 65536
* hard nofile 65536
# End of file
"/etc/security/limits.conf" 64L, 2495C written
[root@localhost home]# ulimit -n 65536
[root@localhost home]# docker start d924608c6b73
d924608c6b73
[root@localhost home]# docker attach d924608c6b73
root@d924608c6b73:/#
root@d924608c6b73:/# cd /home/
root@d924608c6b73:/home# ./run.sh
nginx: [warn] 4000 worker_connections exceed open file resource limit: 1024
[2016-05-25 10:28:30.405][trace][20][0] config parse complete
root@d924608c6b73:/home#
无法解决!但是,我看在另外一台VPS上面,就没有这个问题。
解决办法:在nginx.conf中增加一行:
worker_rlimit_nofile 51200;
nginx: [warn] 4000 worker_connections exceed open file resource limit: 1024
root@d924608c6b73:/home/VodSvr/bin#
#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
* - nofile 65535
* - noproc 65535
* soft nofile 65536
* hard nofile 65536
# End of file
"/etc/security/limits.conf" 64L, 2495C written
[root@localhost home]# ulimit -n 65536
[root@localhost home]# docker start d924608c6b73
d924608c6b73
[root@localhost home]# docker attach d924608c6b73
root@d924608c6b73:/#
root@d924608c6b73:/# cd /home/
root@d924608c6b73:/home# ./run.sh
nginx: [warn] 4000 worker_connections exceed open file resource limit: 1024
[2016-05-25 10:28:30.405][trace][20][0] config parse complete
root@d924608c6b73:/home#
无法解决!但是,我看在另外一台VPS上面,就没有这个问题。
解决办法:在nginx.conf中增加一行:
worker_rlimit_nofile 51200;
0 0
- nginx: [warn] 4000 worker_connections exceed open file resource limit: 1024
- nginx: [warn] 1024 worker_connections exceed open file resource limit: 256
- 关于open file limit问题解决
- ceel num Exceed Limit
- Memory Limit Exceed C
- Memory Limit Exceed B
- nginx之worker_connections
- output limit exceed 常见错误
- nginx 优化系列之worker_connections
- Nginx中worker_connections的问题
- nginx 优化系列之worker_connections
- nginx 优化系列之worker_connections
- Nginx中worker_connections的问题
- Nginx中worker_connections的问题
- 【nginx】优化系列之worker_connections
- POJ 1012 Timing Limit Exceed问题
- fatal error RC1015: cannot open include file 'resource.h'.
- npm WARN enoent ENOENT: no such file or directory, open 'C:\Program Files\nodejs \package.json'
- C#—打字游戏
- OC 数据结构
- 第十三周项目3-形状类族中的纯虚函数
- how to improve working efficency
- 【leetcode】343. Integer Break
- nginx: [warn] 4000 worker_connections exceed open file resource limit: 1024
- 最长上升子序列
- UML中的一些概念
- 欢迎使用CSDN-markdown编辑器
- 插入节点
- android和js交互
- IOS 正则基本使用
- CSAPP实验四----缓冲区溢出实验bufbomb
- 利用RequestMappingHandlerMapping提取Spring MVC @RequestMapping