FastDFS 分布式文件存储目录

1、fastdfs安装和配置 https://blog.csdn.net/hy245120020/article/details/78658081

2、使用nginx代理fastdfs以及图片裁剪(fastdfs-nginxmodule)

   server { 
             listen       8888; 

             location / {
               root   /home/caozhiyuan/fdfsstore/fdfs_storage/data;
             }

             location /group1/M00 {
               root /home/caozhiyuan/fdfsstore/fdfs_storage/data;
               ngx_fastdfs_module;                    
            }   
            
            location ~* /group1/M00/(.*?)_([0-9]+)X([0-9]+)\.(jpeg|jpg|gif|png)$ { 
              root /home/caozhiyuan/fdfsstore/fdfs_storage/data;        
              set $h $2;
              set $w $3;
              rewrite /group1/M00/(.*?)_([0-9]+)X([0-9]+)\.(jpeg|jpg|gif|png)$ /$1.$4 break;
              image_filter_buffer 10M;
              image_filter resize $h $w;                  
           }         
        }

  

3、.net fastdfs客户端使用(https://github.com/caozhiyuan/FastDFSNetCore)

posted @ 2018-08-05 17:28  caozhiyuan  阅读(6192)  评论(0编辑  收藏  举报