日期:2014-05-17  浏览次数:20506 次

请大家进来讨论下,windows 系统下 nginx+php 是怎么解决并发访问问题的?
RT
小弟目前状况:
win7 (开发用机)
nginx + php +sqlite 环境
php-cgi跑一个, 但是 每当并发访问稍微多一点的时候, 网站的php页面就不能访问的

请问问大家 ,是怎么解决这个问题的?


------解决方案--------------------
ngnix上 貌似有配置最大并发数的吧
------解决方案--------------------
windows跑nginx?
看看nginx for windows的官方文档的第一句话
http://nginx.org/en/docs/windows.html

Version of nginx for Windows uses the native Win32 API (not the Cygwin emulation layer). Only the select() request processing method is currently used, so high performance and scalability should not be expected.

所以只是开发用用还可以,生产环境就不要考虑了
------解决方案--------------------
用iis
------解决方案--------------------
探讨
但是 现在是卡在php-cgi上边的 而不是,卡在nginx上的~ 当并发量打的时候,php页面访问不了,但是静态页都正常

------解决方案--------------------
用linux 吧 绝对没问题,或者 改apache