nginx1.76+php5.5经常当机

jimever 2014-10-30 04:36:52
windows2003下安装nginx1.76+php5.5
启动脚本:
@echo off
REM set PHP_FCGI_CHILDREN=5
set PHP_FCGI_MAX_REQUESTS=1000
RunHiddenConsole c:/wnmp/php/php-cgi.exe -b 127.0.0.1:9000 -c c:/wnmp/php/php.ini
RunHiddenConsole c:/wnmp/nginx/nginx.exe -p c:/wnmp/nginx

正常启动,进程中有2个nginx和1个php-cgi,网页正常访问
运行一两天后,php-cgi进程自动退出,nginx正常运行,php页面无法访问

nginx日志记录:
[error] 2660#2704: *1450 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "127.0.0.1:81"

nginx的配置文件:
location ~ \.php$ {
root c:/wnmp/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
...全文
840 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
云天河V 2015-01-07
  • 打赏
  • 举报
回复
个人觉得nginx1.6.2比较稳定,1.7以上慎用
OMiku 2014-11-06
  • 打赏
  • 举报
回复
用nginx请在linux下面,windows不适用
晓敬 2014-11-03
  • 打赏
  • 举报
回复
请bing/Google一下,Nginx在Windows下表现的性能好像还不如IIS。所以Windows下慎用
jimever 2014-11-01
  • 打赏
  • 举报
回复
是进程太多的原因吗,还是配置的问题

4,250

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧