在CentOS 7上安装Nginx服务器
    
            
摘要:下面我就我在CentOS上安装Nginx经验做简单的记录,以备后查。 1、下载nginx-release包 以CentOS 7为例,下载nginx软件包:http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.e
        
阅读全文
 
            
                posted @ 
2017-07-31 19:19 
adolfmc
        
阅读(308) 
         
        推荐(0)     
             
         
            
            
    nginx跨域处理
    
            
摘要:http://www.nginx.cn/nginx-download nginx.conf配置 if ($request_method = ‘OPTIONS’) { add_header Access-Control-Allow-Origin *; add_header Access-Control
        
阅读全文
 
            
                posted @ 
2016-01-20 18:18 
adolfmc
        
阅读(930) 
         
        推荐(0)     
             
         
            
            
    Nginx 用log_format设置日志格式
    
            
摘要:1、配置文件#vim /usr/local/nginx/conf/nginx.conflog_format access ‘$remote_addr – $remote_user [$time_local] “$request” ‘‘$status $body_bytes_sent “$http_r...
        
阅读全文
 
            
                posted @ 
2015-04-07 17:00 
adolfmc
        
阅读(4188) 
         
        推荐(0)     
             
         
            
            
    FastDFS_v4.06+nginx-1.4.2配置详解
    
            
摘要:径不带group名(storage只有一个group的情况),如/M00/00/00/xxx: location /M00 { ngx_fastdfs_module; } 访问路径带group名(storage对应有多个group的情况),如/group1/M00/00/00/xxx: ...
        
阅读全文
 
            
                posted @ 
2015-01-27 17:32 
adolfmc
        
阅读(499) 
         
        推荐(0)     
             
         
            
            
    windows 下 nginx 的启动 停止 关闭
    
            
摘要:停止nginx -s stop重新加载配置文件(改动了参数无需重启,只有执行重新加载即可)nginx -s reload退出 停止 关闭nginx -s quit
        
阅读全文
 
            
                posted @ 
2014-03-05 10:32 
adolfmc
        
阅读(590) 
         
        推荐(0)