Advertisement

nginx 压缩上传文件大小配置项

阅读量:

1、在nginx中集成giz与https功能模块

执行以下命令以启用相关模块:

./configure --with-http_stub_status_module --with-http_ssl_module --with-http_flv_module --with-http_gzip_static_module

随后进行编译与安装操作:

make && make install

2、对nginx的配置文件进行相应调整

复制代码
 user  root;

    
 worker_processes  2;
    
 worker_rlimit_nofile 4096;
    
  
    
 #error_log  logs/error.log;
    
 #error_log  logs/error.log  notice;
    
 #error_log  logs/error.log  info;
    
  
    
 pid        /var/run/nginx.pid;
    
  
    
  
    
 events {
    
     worker_connections  2048;
    
 }
    
  
    
  
    
 http {
    
     include  

全部评论 (0)

还没有任何评论哟~