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;
}
相关推荐
PHP实例开发源码—76云点播网页源码(4核驱动、完美支持拖动)php版.zip
PHP实例开发源码—76云点播网页源码(4核驱动、完美支持拖动)php版.zip
ASP转PHP 工具
正如其名,无需多言。<br/>希望对你有用
centOS7安装zabbix3.2.3
centOS7安装zabbix3.2.3
导航网站完整程序源码亲测可用
使用说明: 1.里面两个模板,都可以切换 2. 运行环境Nginx,伪静态规则 location / { index index.php index.html; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php last; } } 3. 底部修改在templates/souyix/footer.php修改 4. 导入数据库,修改根目录下面的config.php文件填写上数据密码和用户名 5. ico图标获取地址在include/api.php文件76行和文件include/lib/dad.php124行修改即可 6. 文字广告在模板list.php文件37行,图片广告53行和71行,图片广告看不懂就不要修改
搜一下导航完整程序源码
1.里面两个模板,都可以切换 2. 运行环境Nginx,伪静态规则 location / { index index.php index.html; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php last; } } 3. 底部修改在templates/souyix/footer.php修改 4. 导入数据库,修改根目录下面的config.php文件填写上数据密码和用户名 5. ico图标获取地址在include/api.php文件76行和include/lib/dad.php文件124行修改即可 6. 文字广告在板list.php文件37行,图片广告53行和71行,图片广告看不懂就不要修改了,后台不能添加文字广告


Framework
