zoukankan      html  css  js  c++  java
  • Centos6.10-FastDFS-存储器Http配置

    Centos610系列配置

    1.准备配置

    cd /opt/download/fastdfs-master/conf
    cp http.conf /etc/fdfs/http.conf
    cp mime.types /etc/fdfs/mime.types
    cp anti-steal.jpg /etc/fdfs/anti-steal.jpg

    2.开始配置

    cd /etc/fdfs
    vi http.conf
    # HTTP default content type
    http.default_content_type = application/octet-stream
    
    # MIME types mapping filename
    # MIME types file format: MIME_type  extensions
    # such as:  image/jpeg  jpeg jpg jpe
    # you can use apache's MIME file: mime.types
    http.mime_types_filename = mime.types
    
    # if use token to anti-steal
    # default value is false (0)
    # http.anti_steal.check_token = false
    http.anti_steal.check_token = true
    
    # token TTL (time to live), seconds
    # default value is 600
    http.anti_steal.token_ttl = 900
    
    # secret key to generate anti-steal token
    # this parameter must be set when http.anti_steal.check_token set to true
    # the length of the secret key should not exceed 128 bytes
    http.anti_steal.secret_key = FastDFS1234567890
    
    # return the content of the file when check token fail
    # default value is empty (no file sepecified)
    # http.anti_steal.token_check_fail = /home/yuqing/fastdfs/conf/anti-steal.jpg
    
    http.anti_steal.token_check_fail = /etc/fdfs/anti-steal.jps
    
    # if support multi regions for HTTP Range
    # default value is true
    http.multi_range.enabed = true

    重启存储服务器

    /usr/bin/fdfs_storaged /etc/fdfs/storage.conf start
    或者
    service fdfs_storaged restart

     启动成功。

        

  • 相关阅读:
    [2020.12.5周六]Boruvka
    [2020.12.4周五] 圆上对称博弈
    [2020.12.3周四]最长上升子序列
    置顶~ 未来半年内训练计划
    cf1473d
    cf1474D
    寒假复健第一天 cf1475D
    来啦来啦,寒假复健第一题cf1475g
    12.1加训总结 2019南京
    12.7-12.13训练计划
  • 原文地址:https://www.cnblogs.com/oumi/p/12058591.html
Copyright © 2011-2022 走看看