zoukankan      html  css  js  c++  java
  • 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)

  • 相关阅读:
    linux 磁盘管理学习笔记
    Apache的Order Allow Deny心得
    NodeJs 笔记
    JavaScript 笔记
    MySQL 学习笔记
    HTML 转义符
    UTF-8 BOM(EF BB BF)
    [ Python
    [ Python
    [ Python
  • 原文地址:https://www.cnblogs.com/caozhiyuan/p/9426454.html
Copyright © 2011-2022 走看看