ChinaUnix.net
相关文章推荐:

nginx 并发模型

各位大侠们! http { limit_zone one $binary_remote_addr 10m; server { location / { limit_conn one 1; } } }

by zhgbwin - 服务器应用 - 2009-07-14 17:04:55 阅读(1530) 回复(1)

相关讨论

nginx/lighttpd等web server 采用epoll+单进程模式能支持并发几w的并发。但有个问题一直没搞明白,如果单进程的话,来个请求肯定得read/write操作吧,如果get数据很大的话(如sleep 1000),单进程服务串行处理请求还不得严重阻塞啊?? ,请大牛们解惑 ;对于apache进程+线程池的并发处理就比较好理解了

by GNM - C/C++ - 2009-09-02 09:40:43 阅读(21717) 回复(26)

测试页面index.php 192.168.1.82(nginx) 192.168.1.82:81(Apache) nginx配置文件: worker_processes 2; events { use epoll; worker_connections 1024; } /usr/sbin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 10 -u nobody -f /usr/local/php_fastcgi/bin/php-cgi Apache配置:(什么都没改,默认的,采用的prefork) 测试结果,见图:

by 小木虫子 - 服务器应用 - 2009-12-17 17:43:20 阅读(7426) 回复(18)

目前其中一台反向代理nginx并发图,可以看到nginx真的非常强悍!

by myfreeke - 服务器应用 - 2009-06-12 21:46:06 阅读(6519) 回复(24)

最近使用nginx0.74在sorlrais10上跑静态图片服务器 在高并发的情况下挂了好几次了 不知道有人碰到过这问题没? 附上我nginx的配置 大家帮忙看下 谢谢 --------------------------------------------------------------------------- user nobody; worker_processes 64; #Specifies the value for maximum file descriptors that can be opened by this process. worker_rlimit_nofile 51200; events { use eventport; work...

by zelot1982 - 服务器应用 - 2009-04-07 09:28:29 阅读(1765) 回复(1)

nginx 做负载均衡出现问题: nginx 配置 worker_processes 8; events { worker_connections 10240; } upstream ad.demo.cn { server 192.168.1.100:81 weight=1; server 192.168.1.100:82 weight=1; server 192.168.1.100:83 weight=1; server 192.168.1.100:84 weight=1; server 192.168.1.100:85 weight=1; server 192.168.1.100:86 weight=1; ...

by vdgame - 服务器应用 - 2013-10-30 09:40:36 阅读(5624) 回复(9)

2008/09/03 08:10:28 [notice] 4197#0: using the "epoll" event method 2008/09/03 08:10:28 [notice] 4197#0: nginx/0.6.31 2008/09/03 08:10:28 [notice] 4197#0: built by gcc 3.4.6 20060404 (Red Hat 3.4.6-3) 2008/09/03 08:10:28 [notice] 4197#0: OS: Linux 2.6.9-42.EL 2008/09/03 08:10:28 [notice] 4197#0: sysctl(KERN_RTSIGMAX): 0 2008/09/03 08:10:28 [notice] 4197#0: getrlimit(RLIMIT_NOFILE): 65535:65535 200...

by sam.liu - 服务器应用 - 2008-11-20 15:40:28 阅读(8245) 回复(3)

nginx的负载均衡有哪些功能呢? * 如果后面的服务器其中一台坏了,它能自动识别,更牛的是它好了之后nginx可以马上识别 那么大虾知道这ngnix的这个功能使用那部分配置或文件实现的,基本原理是什么?

by andyhua12 - 服务器应用 - 2008-09-30 15:24:47 阅读(2455) 回复(8)

使用心得:nginx处理大并发比较稳定,特别省 内存 ,配置简单. 1.安装pythoncd /usr/ports/lang/python make install clean 2.安装flup cd /usr/ports/www/py-flup make install clean 3.安装 django 1) cd /usr/ports/www/py-django make install clean 4.安装 nginx cd /usr/ports/www/nginx make install clean 5.启动和管理flup的脚本 参考 http://www.djangoproject.com/documentation/fastcgi/ #!/bin/sh # Replace these thr...

by 剑心通明 - BSD文档中心 - 2008-03-23 20:44:48 阅读(1075) 回复(0)

nginx总结 目录 一、安装 2 A)一般安装 2 B)高级安装 2 二、基本命令 3 三、配置文件 3 A)配置文件解释 3 B)带监控模块的配置 4 C)虚拟主机的配置 5 五、事件模型介绍--I/O复用方法 7 A)标准事件模型 7 B)高效事件模型 7 六、关于LEMP的结构 8 A)Linux+nginx+Mysql+Php 8 B)其他结构 8 七、软件的平滑升级 10 A)简单修改配置文件 10 B)平滑升级二进制代码 11 八、相关的处理信号 12 A)主进程可以处理的信号 12 B)工作进...

by adu119 - 服务器应用 - 2008-01-31 18:29:41 阅读(9257) 回复(11)