搜索内容

Nginx
  • Nginx gzip压缩
    Nginx

    Nginx gzip压缩

        location ~ .*\.(jpg|gif|png)$ {
        root /data/wwwroot/images;
        autoindex off;
        autoindex_localtime on; #显示的文件时间为文件的服务器
    WangGaoli 2018年4月26日
  • lnmp-脚本
    Apache

    lnmp-脚本

    #!/bin/bash

    #Script:Nginx_Script.sh

    #Version:Release 1.0

    #Author:766083824@q

    WangGaoli 2017年4月2日
  • Nginx日志切割脚本
    Nginx

    Nginx日志切割脚本

    比如 我们要切割nginx的日志,首先我们进入/etc/logrotate.d/这个目录下,然后建立nginx这个文件

    # cat /etc/logrotate.d/nginx
    /opt/
    WangGaoli 2017年3月22日
  • php-fpm优化pm
    Nginx

    php-fpm优化pm

    php-fpm优化方法

    php-fpm存在两种方式,一种是直接开启指定数量的php-fpm进程,不再增加或者减少;
    另一种则是开始时开启一定数量的php-fpm进程,当请求量变大时,动态的增加php-fpm进程数到上限,当空闲时自动释放空闲的进程数到一个

    WangGaoli 2017年3月21日
  • Nginx Location Rewrite 配置
    Nginx

    Nginx Location Rewrite 配置

    location正则写法

    一个示例:

                    
    WangGaoli 2016年8月17日
  • Nginx Location配置
    Nginx

    Nginx Location配置

    今天讲下location的用法,部分内容是直接从网络上摘取的,这边做了一个整理,为了便于理解和学习,我这边做了一些例子。

    语法规则: location [=|~|~|^~] /uri/ { … }
    = 表示精确匹配,这个优先级也是最高的
    ^

    WangGaoli 2016年8月17日
  • Nginx安装
    Nginx

    Nginx安装

    随着计算机的发展,形形色色的Web站点成为直接面向用户的中坚力量,在各种网站服务器软件中,除了Apache外,还有一款轻量级的Web软件——Nginx,由俄罗斯人开发,其稳定、高效的特性逐渐被越来越多的用户认可。

    Nginx(发音engine)专为性能优化而开

    WangGaoli 2016年8月10日
  • Nginx网站出现403 forbidden的原因及故障模拟重现
    Nginx

    Nginx网站出现403 forbidden的原因及故障模拟重现

    1、原因之一是Nginx配置文件的index参数里没有指定默认首页文件名,下面是Nginx配置文件里指定默认首页的参数。index index.html index.htm; #<==不同的首页文件用空格分隔,按顺序生效问题模拟示例:[root@www ~]# cd /application/nginx/conf/extra[root@www extra]# cat www.conf#www virtualhost by oldboy server { listen ...
    WangGaoli 2016年8月4日
  • nginx1.6.3版本平滑升级新版本1.9.7
    Nginx

    nginx1.6.3版本平滑升级新版本1.9.7

    首先查看现在环境nginx的版本为1.6.3 以及现在的编译参数

    [root@localhost ~]# nginx -V
    nginx version: nginx/1.6.3
    bu
    WangGaoli 2016年8月1日
  • Nginx,kernel优化之二
    Nginx

    Nginx,kernel优化之二

    nginx指令中的优化(配置文件)

                    
    WangGaoli 2016年6月8日
  • Nginx,Apache,PHP优化之一
    Nginx

    Nginx,Apache,PHP优化之一

    企业级nginx服务优化(一)

    配置文件总结

                    
    WangGaoli 2016年6月7日
  • Nginx
    Nginx

    Nginx

    nginx 特性:

    1. nginx是模块化设计的,有较好的扩展性;

    2. 高可靠性

    master/worker 的设计模式

    加载并分析配置文件是由master来实现的

    worker是nginx响应客户请

    WangGaoli 2016年6月7日