http://fuzhong1983.blog.163.com/blog/static/1684705201051002951763/.介绍FastCGI是对CGI的开放的扩展,它为所有因特网应用提供高性能,且没有Web服务器API的缺点(penalty)。本规范具有有限的(narrow)目标:从应...
分类:
其他好文 时间:
2014-12-08 17:22:25
阅读次数:
368
http://www.cppblog.com/woaidongmao/archive/2011/06/21/149092.html一、FastCGI是什么? FastCGI是语言无关的、可伸缩架构的CGI开放扩展,其主要行为是将CGI解释器进程保持在内存中并因此获得较高的性能。众所周知,CGI解释....
分类:
其他好文 时间:
2014-12-08 17:06:54
阅读次数:
336
在Linux上搭建apache+fastcgi环境,说多了都是泪啊. 花费我几天时间,开源软件虽说好用,但是版本众多,文档缺乏,什么都只能自己摸索. 终于成功运行起来,特此记录.一. apache 安装 此处下载 apache-2.2.27 版本,常规的 configure make 命令,...
分类:
编程语言 时间:
2014-12-08 17:05:57
阅读次数:
234
We can see this comment in nginx.conf.# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000Means: When the nginx handle PHP, the server...
分类:
Web程序 时间:
2014-12-04 17:19:37
阅读次数:
215
nginx+php出现502badgateway,一般这都不是nginx的问题,而是由于fastcgi或者php的问题导致的,常见的有以下几种。1.php.ini的memory_limit过小(如果有个别php程序进程需要占用极大内存时这个必须注意)2.php-fpm.conf中max_children或者max_requests设置不合理(设置过小会因..
分类:
Web程序 时间:
2014-12-04 15:57:30
阅读次数:
263
1、首先需要准备的应用程序包。 nginx:nginx/Windows-1.0.4 php:php-5.2.16-nts-Win32-VC6-x86.zip?(nginx下php是以FastCGI的方式运行,所以我们下载非线程安全也就是nts的php包) (还会用到)R...
^_^是在WIN下开发。配置是nignxphpmysql默认时启动phpcgi是D:\php\php-cgi.exe-b127.0.0.1:9000-cD:\phpfind\phpa\php.ini先看NGINX配置location~\.php(.*)${
fastcgi_pass127.0.0.1:9000;
fastcgi_indexindex.php;
fastcgi_split_path_info^((?U).+\.php)(/?.+)$;
fastcgi_par..
分类:
Web程序 时间:
2014-11-28 12:41:05
阅读次数:
295
接上节, 上节只有响应---cout, 本节获取地址栏的QUERY_STRING, 然后响应.一. req_resp.cpp.#include #include #include #include "fcgio.h"#include "fcgi_config.h"using namespace st...
分类:
Web程序 时间:
2014-11-27 20:21:29
阅读次数:
158
在fast-cgi源码的examples文件夹下有很多例子, 下面给出echo例子, 编译运行方法同上几节.fast-cgi的API google之.http://fossies.org/dox/fcgi-2.4.0/fcgiapp_8h.html#a32f6950798054a70404ce24c...
分类:
Web程序 时间:
2014-11-27 20:14:21
阅读次数:
359
nginx-1.6.2 + wamp 的PHP
1)关闭.bat
@echo off
echo Stopping nginx...
taskkill /F /IM nginx.exe > nul
echo Stopping PHP FastCGI...
taskkill /F /IM php-cgi.exe > nul
2)启动.bat
@echo ...