一.windows下编译配置执行lighttpd1、下载并安装cygwin。2、下载lighttpd源码并解压3、在cygwin环境下进入lighttpd的解压文件夹后,执行:1> ./configure –prefix=C:/lighthttd2> make3> make installOK,此时...
分类:
数据库 时间:
2014-11-12 10:28:05
阅读次数:
239
摸索了一会儿,先配置成功,再看看PATH_INFO之类的东东吧。A,根目录:location ~ \.php($|/) { root html; fastcgi_pass 127.0.0.1:9000; fas...
分类:
Web程序 时间:
2014-11-11 18:29:59
阅读次数:
263
yum install nginx php php-fpm#vim /etc/nginx/conf.d/default.conf location ~ \.php$ { root /usr/share/nginx/html; fastcgi_pass ...
分类:
Web程序 时间:
2014-11-11 18:04:12
阅读次数:
305
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
一.windows下编译配置执行lighttpd1、下载并安装cygwin。2、下载lighttpd源码并解压3、在cygwin环境下进入lighttpd的解压文件夹后,执行:1> ./configure –prefix=C:/lighthttd2> make3> make installOK,此时...
分类:
数据库 时间:
2014-11-08 16:29:29
阅读次数:
298
二.) 安装MYSQL安装mysql-5.0.45.tar.gz, 下面是总体的编译文件1. -static13%--with-client-ldflags=-all-static--with-mysqld-ldflags=-all-static静态链接提高13%性能2. -pgcc1%CFLAGS...
分类:
数据库 时间:
2014-11-06 00:43:17
阅读次数:
288
架构 Varnish+nginx+php(FastCGI)+MYSQL5+MenCache+MenCachedb说明:我在设计系统架构时,进行了大胆的尝试,只用6台Web服务器,达到了可承受4000万PV(页面访问量)的性能: 抛弃了 Apache,因为它能承受的并发连接相对较低; 抛弃了 Sq.....
分类:
数据库 时间:
2014-11-06 00:42:24
阅读次数:
400
四、优化Linux内核参数vi /etc/sysctl.conf 在末尾增加以下内容:引用net.ipv4.tcp_fin_timeout = 30net.ipv4.tcp_keepalive_time = 300net.ipv4.tcp_syncookies = 1net.ipv4.tcp_tw....
分类:
数据库 时间:
2014-11-06 00:35:15
阅读次数:
443
看到zenddebuger有非线程安全的版本,才知道PHP推出了非线程安全的版本。而此前我对非线程安全一无所知:另一篇文章好像说这个跟FASTCGI有点关系。这是一段文字,不过我没看明白:php本身是线程安全的。一个服务进程可以安全地提供多请求线程的支持一些扩展并不遵守例如:线程安全的扩展中,全局变...
分类:
编程语言 时间:
2014-11-04 10:49:48
阅读次数:
211
Ngnix在遇到%00空字节时与后端FastCGI处理不一致,导致可以在图片中嵌入PHP代码然后通过访问xxx.jpg%00.php来执行其中的代码影响版本:nginx0.5.*nginx0.6.*nginx0.7<=0.7.65nginx0.8<=0.8.37
分类:
Web程序 时间:
2014-11-04 06:47:47
阅读次数:
258