nginx1.76+php5.5经常当机

jimever jimever 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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;
}
...全文

相关推荐

PHP实例开发源码—76云点播网页源码(4核驱动、完美支持拖动)php版.zip

PHP实例开发源码—76云点播网页源码(4核驱动、完美支持拖动)php版.zip

毕业_设计

ASP转PHP 工具

正如其名,无需多言。<br/>希望对你有用

yunzhu666

centOS7安装zabbix3.2.3

centOS7安装zabbix3.2.3

benau

导航网站完整程序源码亲测可用

使用说明: 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行,图片广告看不懂就不要修改了,后台不能添加文字广告

希希分享
评论 5
收藏 已收藏
分享
返回顶部
jimever
Framework 4,250 成员 4,522 内容