在apache,nginx,lighttpd等web服务器当中,都有一项sendfile相关的配置,在一些网上的资料都有谈到sendfile会提升文件传输性能,那sendfile到底是什么呢?它的原理又是如何呢?在传统的文件传输里面(read/write方式),在实现上其实是比较复杂的,需要经过.....
分类:
系统相关 时间:
2014-06-08 20:28:40
阅读次数:
288
manage.py runfcgi minspare=50 maxspare=200
maxchildren=1000 maxrequests=99999 host=127.0.0.1 port=8080 pidfile=./django.pid
method=threaded# maxspare为...
分类:
其他好文 时间:
2014-06-03 06:33:20
阅读次数:
252
nginx的模块非常之多,可以认为所有代码都是以模块的形式组织,这包括核心模块和功能模块,针对不同的应用场合,并非所有的功能模块都要被用到,附录A给出的是默认configure(即简单的http服务器应用)下被连接的模块,这里虽说是模块连接,但nginx不会像apache或lighttpd那样在编译时生成so动态库而在程序执行时再进行动态加载,nginx模块源文件会在生成nginx时就直接被编译到...
分类:
其他好文 时间:
2014-05-25 22:55:05
阅读次数:
440
今天整了一上午,才整明白。我的系统是是 win7 32位 ,用的环境是
Wamp,php版本是5.3.5,后来在http://xcache.lighttpd.net/pub/Releases/3.0.4/下载的5.3.27包,解压后把php_xcache.dll放在ext文件夹下,后来在php.in...
1,下载安装lighttpd-1.4.34lighttpd官网下载最新稳定版本[root@localhostsoftware]#tar-zxvflighttpd-1.4.34.tar.gz[root@localhostsoftware]#cdlighttpd-1.4.34[root@localhostlighttpd-1.4.34]#./configure--prefix=/usr/local/lighttpd#安装默认模块[root@localhostlighttpd..
分类:
其他好文 时间:
2014-05-20 23:29:06
阅读次数:
313
终于找到了解决方法,在下面的文件中添加两行即可:/home/redmine/redmine-2.5.1/public/dispatch.fcgirequire 'rubygems'
require 'fcgi'就这么简单。终于解决了困扰已久的crash问题。...
分类:
其他好文 时间:
2014-05-13 13:33:44
阅读次数:
244
1, Nginx 安装,http://nginx.org/en/download.html.下载解压,configure,make ,make install.安装过程中确实包,需要先下载安装依赖包2,安装lighttpd的spawn-fastcgi 下载http://www.lighttpd.net/download/lighttpd-1.4.19.tar.gz ./configuremake...
分类:
其他好文 时间:
2014-05-09 01:46:02
阅读次数:
358
yum install fcgi-devapt-get install libfcgi-dev
分类:
其他好文 时间:
2014-05-07 19:08:53
阅读次数:
278
一、FastCgi与PHP-fpm参考:http://www.mike.org.cn/articles/what-is-cgi-fastcgi-php-fpm-spawn-fcgi/二、LAMP分离架构资源规划:静态层:172.16.1.1,httpd服务器动态层:172.16.1.2,PHP服务器,启动php-fpm数据层:172.16.1.3,mysql服务器,lvm三、数据库服务器搭建略,参..
分类:
其他好文 时间:
2014-05-02 03:58:49
阅读次数:
397
这个就不写了,直接传送门过去看,按照说的做就可以了
分类:
其他好文 时间:
2014-05-01 18:53:14
阅读次数:
284