fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;#脚本文件请求的路径fastcgi_param QUERY_STRING $query_string; #请求的参数;如?a...
分类:
其他好文 时间:
2015-01-04 18:52:19
阅读次数:
126
http://blog.csdn.net/allenlinrui/article/details/19419721分类:C/C++2014-02-18 17:583875人阅读评论(0)收藏举报CC++web开发nginxfastcgi 由于最近工作的需要,本人学习了一下利用高性能web serve...
分类:
编程语言 时间:
2014-12-08 17:32:20
阅读次数:
284
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
1.准备环境CentOs 6.3nginx-1.4.2.tar.gz http://nginx.org/download/nginx-1.4.2.tar.gzopenssl-1.0.1c.tar.gz http://www.openssl.org/source/openssl-1.0....
分类:
编程语言 时间:
2014-11-11 14:11:19
阅读次数:
305
今天发现服务器上老是出现文件下载不全的情况,以前一直以为是网络不稳定的原因引起的,后来发现不是的。是ng的配置的原因。 ??? 先简单的说一下 Nginx 的 buffer 机制,对于来自 FastCGI Server 的 Response...
分类:
其他好文 时间:
2014-10-13 13:51:59
阅读次数:
227
Nginx + FastCgi + Spawn-fcgi + c 的服务器架构...
分类:
其他好文 时间:
2014-10-13 11:29:09
阅读次数:
153
nginx+fastcgi安装nginx安装:#nginx-1.4.2.tar.gz#libevent-1.4.13-stable.tar.gzyuminstallpcre-developenssl-develcd/usr/local/srctarzxvfnginx-1.4.2.tar.gzcdnginx-1.4.2./configure--prefix=/usr/local/nginx--sbin-path=/usr/sbin/nginx--conf-path=/etc/nginx/nginx.c..
分类:
其他好文 时间:
2014-10-09 16:36:28
阅读次数:
238
在centos上成功编译安装nginx 1.4、php 5.4并成功启动nginx和php-fpm后,访问php提示"File not found.",同时在错误日志中看到:复制代码 代码如下:2013/10/22 20:05:49 [error] 12691#0: *6 FastCGI sent ...
分类:
其他好文 时间:
2014-09-10 12:05:20
阅读次数:
169
需求:一个php程序要跑一段时间,但是时间不确定。问题:当该php程序运行超过一段时间被强制断开连接。PHP本身超时处理在php.ini中,有一个参数max_execution_time可以设置PHP脚本的最大执行时间,但是,在php-cgi(php-fpm)中,该参数不会起效。真正能够控制PHP脚本最大执行时..
分类:
其他好文 时间:
2014-08-21 15:14:24
阅读次数:
210
优化性能参数设置,在ngnix.conf中的http 层加上fastcgi参数如下:
http {
fastcgi_cache_path /usr/local/nginx/fastcgi_cache levels=1:2 keys_zone=TEST:10m inactive=5m;
fastcgi_connect_timeout=300;
fastcgi_send_timeout=30...
分类:
其他好文 时间:
2014-07-13 17:17:07
阅读次数:
218