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

     启动成功。

        

  • 相关阅读:
    MySQL 三节点企业版
    Raft 一致性算法论文译文 JAVA
    MySQL EXPLAIN 命令详解学习
    MySQL 5.7.17 Group Replication 初始
    JAVA 线程池以及其他
    什么是IIS并发连接数
    CUDA
    各种学习手册在线
    弱电系统标准CAD图例识图讲解
    ACM---算法
  • 原文地址:https://www.cnblogs.com/oumi/p/12058591.html
Copyright © 2011-2022 走看看