• Nginx安装配置+清缓存模块安装

    日期:

    经过一段时间的使用,发现nginx在并发与负载能力方面确实优于apache,现在已经将大部分站点从apache转到了nginx了。以下是nginx的一些简单的安装配置。 环境 操作系统:CentOS、RedHat IP地址:192.168.1.202 下载软件包 # mkdir /usr/local/src/tarbag # mk...

  • Nginx日志配置

    日期:

    日志对于统计排错来说非常有利的。本文总结了nginx日志相关的配置如access_log、log_format、open_log_file_cache、log_not_found、log_subrequest、rewrite_log、error_log。 nginx有一个非常灵活的日志记录模式。每个级别的配置可以有各自独立的访问日志。...

  • Nginx error

    日期:

    前端访问403就知道是拒绝访问,但是具体那块拒绝不清楚,通过访问nginx的error日志发现如下错误: 2012/09/03 18:31:22 [error] 11132#0: *4550288 open() /home/statistic/tomcat_statistic_*******/webapps/statistic/stat.js failed (13: Permission deni...

  • Nginx手动编译的编译选项解析

    日期:

    管理操作系统肯定要面临装软件,Linux有很多种装软件的办法,而手动编译是最通用的办法。Nginx是一款非常优秀的Web服务器/反向代理服务器,具有轻量、占用资源少、支持高并发等优秀特点。正因为Nginx有着高效、多功能的特性,Nginx的编译安全的选项也是非常...

  • nginx与apache日志文件格式对比

    日期:

    有关nginx日志文件格式与apache日志文件格式的对比分析,nginx与apache日志文件格式有哪些区别,不了解的朋友参考下。 在对nginx或apache日志文件进行分析时,有必要对日志文件格式非常熟悉,才能更好地对日志的分析实施监控,对日志文件分析做到更好的掌握。...

  • 学习Nginx的无缝升级

    日期:

    本文介绍nginx的无缝升级操作,供大家学习参考。 首先到 http://wiki.nginx.org/ 下载最新稳定版,我们这里使用的是nginx-0.8.54。 # wget http://nginx.org/download/nginx-0.8.54.tar.gz # tar zvxf nginx-0.8.54.tar.gz # cd nginx-0.8.54 下面按自己选择...

  • Nginx中基于User-Agent的Rewrite实例

    日期:

    朋友讲,nginx比Apache居有灵活的user-agent控制,特找来记录,确实如此。一般通过User-Agent来判断,从网上抄一抄,那些列出的都不错,我的配置里加上了java、curl和Wget,方便调试和其它内部项目的抓...

  • 安装Nginx时报错 the HTTP cache module requires md5 functions

    日期:

    安装Nginx时报错 ./configure: error: the HTTP rewrite module requires the PCRE library. 安装pcre-devel解决问题 yum -y install pcre-devel 错误提示:./configure: error: the HTTP cache module requires md5 functions from OpenSSL library. You ca...

  • Nginx启动出错 error while loading shared libraries:

    日期:

    在centos5.7 32位上编译安照 nginx-1.1.16 出错 [root@localhost conf]# /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 从错...

  • Nginx中URL不区分大小写

    日期:

    1.需要Embedded Perl模块支持 本模块允许在Nginx中直接执行Prel,或者通过SSI调用Perl。 默认是不会编译进Nginx的,如果你要使用,则要在编译安装Nginx指定: ./configure --with-http_perl_module 另外:操作系统中必须安装:Perl5.6.1以上版本 已知问题: 1...