------------------安装Nginx-------------------安装编译工具与依赖环境#yuminstallgccgcc-c++makepcre-developenssl-develzlib-devel-y#useraddnginx//创建Nginx用户#tar-xvfnginx-1.6.2.tar.gz//解压nginx源码包#cdnginx-1.6.2#./configure\//配置nginx编译参数>--prefix..
分类:
Web程序 时间:
2015-03-16 13:03:26
阅读次数:
283
CenOS 6.3 + nginx 1.2.4 + PHP 5.4.8 + MySQL 5.5.28 完整配置#阿里云64位系统无法安装GCC需要安装kernel-headers库wgethttp://vault.centos.org/5.7/os/x ... -274.el5.x86_64.rpm...
分类:
系统相关 时间:
2015-03-15 10:47:43
阅读次数:
312
1.访问网站所涉及环节简单说就是重复相同的请求首先看看访问流程所设计的每个环节User -> Browse -> CDN/Proxy Cache -> Web Server -> App Server / fastcgi pool -> Cache -> Database大部分网站都是这样的结构:用...
分类:
Web程序 时间:
2015-03-15 00:38:46
阅读次数:
191
Since the original tech preview release of FastCGI last year, we've been seeing a lot of requests for getting Ruby on Rails running with our FastCGI. ...
闻说Nginx向来有性能高、并发性强、占用内存少的优势,更有“反向代理”和“负载均衡”的特点。而使用Nginx+PHP作开发环境,性能更是比Apache+PHP高数倍。本文以各程序当前最新的版本为例,介绍在Windows(x64)下搭建Nginx+PHP+MySQL+phpMyAdmin经典开发环境...
分类:
数据库 时间:
2015-03-14 19:55:08
阅读次数:
288
这段时间由于服务器架构,需要研究在Java基础上的Jetty中部署PHP程序(Wordpress,Discuz)在网上查了很多资料,都是用httpd或者nginx当前段Web Server,Jetty在后台服务器的。介于我之前用的嵌入式Jetty(embedded jetty),所以并不适合这种解决...
分类:
Web程序 时间:
2015-03-13 08:08:38
阅读次数:
172
这个用spawn-fcgi 来管理FastCGI 以达到优化Apache 下PHP性能的方法比较另类,大家权当一种参考。
方法:系统平台是CentOS 5,前提是LAMP已配置好,运行正常。
1. wget -c http://www.21andy.com/centos/5/i386/spawn-fcgi-1.6.3-1.el5.i386.rpm(也可以去官方下载源码包编译安装:htt...
分类:
Web程序 时间:
2015-03-11 21:40:28
阅读次数:
145
server{listen80;server_nameapply.lalagome.cn;root/usr/local/www/gome;error_page404500502503504/50x.html;indexindex.htmlindex.htmindex.php;location/{indexindex.php;if(!-e$request_filename){rewrite^/(.*)$/index.php/$1last;break;}}location~\.php{fastcgi_pass12..
分类:
Web程序 时间:
2015-03-11 15:01:49
阅读次数:
107
问题:访问www.xxxx.com/index.php/api/xxxxxxxxx网址时,提示无法访问,找不到页面解决:第一次,是改了nginx.conf,不会报这个错误了,但还是没有用location ~ ^.+\.php { (...) fastcgi_split_path_info ^((.....
分类:
其他好文 时间:
2015-03-11 10:28:27
阅读次数:
127
论坛头像是动态的,例如:http://xxx.xxx.xxx/avatar.php?uid=xxx&size=big每个用户的头像文件都有big、middle、small三个,并且在不同场景分别调用不同尺寸的头像图片,比如帖子、个人设置、头像编辑、登陆等等场景,无形中增加了nginx与php之间的工作压力,如果能够把这..
分类:
Web程序 时间:
2015-03-10 17:29:15
阅读次数:
188