英文原文:Optimizing Nginx for High Traffic Loads 过去谈过一些关于Nginx的常见问题; 其中有一些是关于如何优化Nginx. 很多Nginx新用户是从Apache迁移过来的,因些他们过去常常调整配置和执行魔术操作来确保服...
分类:
其他好文 时间:
2014-08-07 13:35:10
阅读次数:
388
nginx启动报错:errorwhileloadingsharedlibraries:libpcre.so.1:cannotopensharedobjectfile:Nosuchfileordirectory我用的是64位系统解决办法:[root@lee~]#ln-s/usr/local/lib/libpcre.so.1/lib64启动nginx即可:/usr/local/webserver/nginx/sbin/nginx
分类:
其他好文 时间:
2014-08-07 13:29:30
阅读次数:
181
Nginx不支持对外部程序的调用,所以必须通过FastCGI接口实现对外部程序的调用从而实现对客户端动态页面请求的处理。
CGI的英文全称为Common Gateway Interface(公共网关接口),是Nginx和动态脚本程序的桥梁,Nginx通过FastCGI接口将动态请求发送给FastCGI,FastCGI中的Wrapper进程生成一个线程,将请求交给脚本解释程序执行,然后...
分类:
Web程序 时间:
2014-08-07 13:19:30
阅读次数:
212
如果uwsgi错误中提示
*** no app loaded. going in full dynamic mode ***
执行
[plain] view
plaincopy
aptitude install uwsgi-plugin-python
之后重启uwsgi...
分类:
其他好文 时间:
2014-08-07 13:16:10
阅读次数:
185
LVS简介:LVS集群有DR、TUN、NAT三种配置模式,可以对www服务、FTP服务、MAIL服务等做负载均衡,下面通过搭建www服务的负载均衡实例,讲述基于DR模式的LVS集群配置Director-Server:LVS的核心服务器,作用类似于一个路由器,含有为LVS功能完成的路由表,通过路由表把用户的请求..
分类:
其他好文 时间:
2014-08-07 07:37:11
阅读次数:
456
nginx的重定向和nginx的反向代理的原理还是有区别的。当把nginx用作URL重定向功能时,当客户端访问网站时,nginx会自动把网站链接跳转到指定的地址,在客户端浏览器地址栏会发现明明访问的是A域名(ip),却显示出了访问B域名(ip),也就是nginx把收到的客户端的请求后把客户..
分类:
其他好文 时间:
2014-08-07 07:36:10
阅读次数:
193
下载、编译安装wgethttp://cn2.php.net/distributions/php-5.4.7.tar.gz
tarzvxfphp-5.4.7.tar.gz
cdphp-5.4.7
./configure--prefix=/usr/local/php--enable-fpm--with-mcrypt--enable-mbstring--disable-pdo--with-curl--disable-debug--disable-rpath--enable-inline-opt..
分类:
Web程序 时间:
2014-08-07 07:34:00
阅读次数:
271
#自搭建了个人博客有需要交流学习的可以访问www.wpython.com#!/usr/bin/envpython
importdatetime,os,sys,shutil
log_path=‘/alidata/log/nginx/access/‘
log_file=‘www.wpython.com.log‘
yesterday=(datetime.datetime.now()-datetime.timedelta(days=1))
try:
os.makedir..
分类:
编程语言 时间:
2014-08-07 07:32:10
阅读次数:
267
favoriteI have nginx+php-fpm web serverSo I've noticed in php5-fpm.log many strange lines:[03-Sep-2013 09:25:23] NOTICE: [pool www] child 23999 exited...
分类:
Web程序 时间:
2014-08-06 22:53:12
阅读次数:
367
1、windows下nginx查看并发链接数要使用stable版本2、配置代码:location /status { stub_status on; }3、访问地址:http://localhost/status最开始用的mainLine版本,网上看了很多配置教程,都测试不通过(配置没问题)但...