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 ()
# http.anti_steal.check_token = false
http.anti_steal.check_token = true # token TTL (time to live), seconds
# default value is
http.anti_steal.token_ttl = # 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 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

启动成功。

最新文章

  1. Android 第三方图表类 MPChart 的使用
  2. user initialization list vs constructor assignment
  3. [C]基本数据类型:整型(int)用法详解
  4. .Net验证码实现基础--Draw
  5. 提高Linux安全性--hosts.allow, hosts.deny 文件修改方法
  6. quartz 定时任务的实现
  7. 【转】C#实现MD5加密
  8. sql第三天
  9. c# 去除字符串中重复字符
  10. Project facet is Java version 1.7 is not spported
  11. Dockerfile指令介绍
  12. 网络编程-Mysql-1、数据库的启动关闭,创建数据库,表等基本操作
  13. javascript常用积累
  14. 2. apache整合tomcat部署集群
  15. js替换数组中的一个对象用for循环遍历
  16. Ubuntu 14.04下 Java通用安装方法
  17. [LibreOJ #2983]【WC2019】数树【计数】【DP】【多项式】
  18. spring-cloud-sleuth简单使用
  19. codeforces round #264(div2)
  20. argparse.add_argument()应用

热门文章

  1. php处理复选框
  2. php设计模式之装饰模式实例代码
  3. 十分钟理解JavaScript引擎的执行机制
  4. COMMUNITY DETECTION_python-louvain
  5. unity命令行参数
  6. JS 获取随机颜色值
  7. SpringBoot整合WEB开发--(二)静态资源访问
  8. IIS的部署
  9. js判断有无属性及新添属性
  10. 使用maven 打包springboot项目步骤以及所遇到的问题