之前搞app时候学的webpy,一直用的自带webserver,最近研究nginx一段时间,决定二者结合玩一下~ 把搭建的要点总结下,说不定哪天还得用——其实平时手挺懒的... 1 必备模块和背景知识 pcre,flup,nginx,webpy,spawn-fcgi pcre是ng...
分类:
Web程序 时间:
2014-10-24 18:04:42
阅读次数:
271
概述从这篇博文起,将带领读者们一起领略Nginx的强大。Nginx 是做什么用的?我相信很多朋友都已经使用过,如果你没有,那么你一定知道以下这些名称之一:Apache,Lighttpd,Tomcat,Jetty。 它们占据了目前Web服务器的几乎全部江山,其中 Apache 是知名度最高的,同时也是...
分类:
Web程序 时间:
2014-10-22 17:51:33
阅读次数:
188
Nginx + FastCgi + Spawn-fcgi + c 的服务器架构...
分类:
其他好文 时间:
2014-10-13 11:29:09
阅读次数:
153
1、头文件 #include 2、while(FCGI_Accept()>=0)//这里进入循环,前台每请求一次fcgi服务,就循环一次 循环内处理: char *query_string=getenv("QUERY_STRING");3、从获得的query_string解析查询字段,进行兴许操作。...
分类:
其他好文 时间:
2014-10-12 18:16:38
阅读次数:
415
下面的方法是利用管道文件,使得nginx来支持cronlog分割日志实现方法1,建立管道文件mkfifo/var/log/accesslog/nginx/access.log2,修改nginx的log日志指向access_log/var/log/accesslog/nginx/access.log;...
分类:
其他好文 时间:
2014-10-11 23:19:46
阅读次数:
232
mod_h264 streaming可以使lighttpd支持mp4格式,安装见下文...
分类:
Web程序 时间:
2014-10-11 21:15:26
阅读次数:
288
linux下lighttpd服务器的安装部署 以及对flv流媒体的支持配置...
分类:
Web程序 时间:
2014-10-10 17:17:34
阅读次数:
260
1 先安装lighttpd,提示缺少pcre,zlib,bzip2,so:shell> yum install gcc glib2-devel openssl-devel pcre-devel bzip2-devel gzip-devel zlib-develshell> 安装后进入lighttpd...
分类:
数据库 时间:
2014-10-09 17:32:17
阅读次数:
230
在lighttpd网络模型里面我们可以看到以下代码 1 /* accept()s at most 100 connections directly 2 * 3 * we jump out after 100 to give the waiting connections a ch...
分类:
其他好文 时间:
2014-09-29 12:53:40
阅读次数:
160
一开始不怎么明白fastcgi和cgi的区别,查了资料说,fastcgi多了一个进程池,不要每次都fork和退出这个不是重点,还是对着代码看吧怎样在lighttpd运行php呢,需要下面这样配置把fastcig模块的前面井号去掉,然后在下面加上这个相关的配置就可以fastcgi.debug = 1f...
分类:
其他好文 时间:
2014-09-17 23:06:23
阅读次数:
571