Centos6.10-FastDFS-存储器Http配置
2024-09-04 08:57:34
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
启动成功。
最新文章
- Android 第三方图表类 MPChart 的使用
- user initialization list vs constructor assignment
- [C]基本数据类型:整型(int)用法详解
- .Net验证码实现基础--Draw
- 提高Linux安全性--hosts.allow, hosts.deny 文件修改方法
- quartz 定时任务的实现
- 【转】C#实现MD5加密
- sql第三天
- c# 去除字符串中重复字符
- Project facet is Java version 1.7 is not spported
- Dockerfile指令介绍
- 网络编程-Mysql-1、数据库的启动关闭,创建数据库,表等基本操作
- javascript常用积累
- 2. apache整合tomcat部署集群
- js替换数组中的一个对象用for循环遍历
- Ubuntu 14.04下 Java通用安装方法
- [LibreOJ #2983]【WC2019】数树【计数】【DP】【多项式】
- spring-cloud-sleuth简单使用
- codeforces round #264(div2)
- argparse.add_argument()应用