010_mod_fastdfs.conf配置详情

1. connect_timeout

# connect timeout in seconds

# default value is 30s

#连接超时时间

connect_timeout=2

2. network_timeout

# network recv and send timeout in seconds

# default value is 30s

#发送和接受数据超时时间

network_timeout=30

3. base_path

# the base path to store log files

#日志文件位置

base_path=/tmp

4. load_fdfs_parameters_from_tracker

# if load FastDFS parameters from tracker server

# since V1.12

# default value is false

#是否从tracket服务器读取信息

load_fdfs_parameters_from_tracker=true

5. storage_sync_file_max_delay

# storage sync file max delay seconds

# same as tracker.conf

# valid only when load_fdfs_parameters_from_tracker is false

# since V1.12

# default value is 86400 seconds (one day)

#当load_fdfs_parameters_from_tracker设置为false时, 本参数生效。同步文件最大延迟时间, 与tracker.conf文件中参数相同, 默认是一天。

storage_sync_file_max_delay = 86400

6. use_storage_id

# if use storage ID instead of IP address

# same as tracker.conf

# valid only when load_fdfs_parameters_from_tracker is false

# default value is false

# since V1.13

#当load_fdfs_parameters_from_tracker设置为false时, 本参数生效。是否使用storage_id

use_storage_id = false

7. storage_ids_filename

# specify storage ids filename, can use relative or absolute path

# same as tracker.conf

# valid only when load_fdfs_parameters_from_tracker is false

# since V1.13

#当load_fdfs_parameters_from_tracker设置为false时, 本参数生效。指定storage ids filename的位置

storage_ids_filename = storage_ids.conf

8. tracker_server

# FastDFS tracker_server can ocur more than once, and tracker_server format is

#  "host:port", host can be hostname or ip address

# valid only when load_fdfs_parameters_from_tracker is true

#配置一个或者多个tracker服务器, 从tracker服务器读取信息。当load_fdfs_parameters_from_tracker设置为true时, 本参数生效。

tracker_server = 192.168.25.135:22122

tracker_server = 192.168.25.137:22122

tracker_server = 192.168.25.138:22122

9. storage_server_port

# the port of the local storage server

# the default value is 23000

#storage服务器端口号

storage_server_port=23000

10. group_name

# the group name of the local storage server

#卷/组名

group_name=group1

11. url_have_group_name

# if the url / uri including the group name

# set to false when uri like /M00/00/00/xxx

# set to true when uri like ${group_name}/M00/00/00/xxx, such as group1/M00/xxx

# default value is false

#url链接中是否包含组名

url_have_group_name = true

12. store_path_count

# path(disk or mount point) count, default value is 1

# must same as storage.conf

#存储路径数量, 必须和storage.conf文件一致

store_path_count=1

13. store_path#

# store_path#, based 0, if store_path0 not exists, it's value is base_path

# the paths must be exist

# must same as storage.conf

#存储路径地址、必须和storage.conf文件一致

store_path0=/usr/local/fastdfs/storage01

#store_path1=/home/yuqing/fastdfs1

14. log_level

# standard log level as syslog, case insensitive, value list:

### emerg for emergency

### alert

### crit for critical

### error

### warn for warning

### notice

### info

### debug

#日志级别

log_level=info

15. log_filename

# set the log filename, such as /usr/local/apache2/logs/mod_fastdfs.log

# empty for output to stderr (apache and nginx error_log file)

#设置日志的名称, 为空则记录到 http服务的错误日志里

log_filename=

16. response_mode

# response mode when the file not exist in the local file system

## proxy: get the content from other storage server, then send to client

## redirect: redirect to the original storage server (HTTP Header is Location)

#当文件在本地不存在时怎样回应

#proxy代理, 从其它存储服务器获取内容, 然后发送给客户

#redirect重定向原始存储服务器的http头

response_mode=proxy

17. if_alias_prefix

# the NIC alias prefix, such as eth in Linux, you can see it by ifconfig -a

# multi aliases split by comma. empty value means auto set by OS type

# this paramter used to get all ip address of the local host

# default values is empty

#多种别名用逗号分隔, 空值表示自动设置系统类型。这个参数用于得到本机的所有ip。

if_alias_prefix=

18. #include

# use "#include" directive to include HTTP config file

# NOTE: #include is an include directive, do NOT remove the # before include

#使用#include指令, 包含http配置文件。注意: #include这是一个包含指令, 不要删除 include前面的 #

#include http.conf

19. flv_support

# if support flv

# default value is false

# since v1.15

#是否支持flv文件,默认不支持

flv_support = true

20. flv_extension

# flv file extension name

# default value is flv

# since v1.15

#flv文件的扩展名, 默认是flv

flv_extension = flv

21. group_count

# set the group count

# set to none zero to support multi-group on this storage server

# set to 0  for single group only

# groups settings section as [group1], [group2], ..., [groupN]

# default value is 0

# since v1.14

#设置组的数量

#设置非0, 支持多个group组在这个存储服务器上

#设置0为只有一个组

#如果服务器上多个组, 组的设置, 就像这样: [group1], [group2], ..., [groupN]

#默认是0, 一组

group_count = 0

22. [group1]

# group settings for group #1

# since v1.14

# when support multi-group on this storage server, uncomment following section

#组1的设置

#若本存储服务器支持多组, 取消下面的注释

#[group1]

#group_name=group1

#storage_server_port=23000

#store_path_count=1

#store_path0=/usr/local/fastdfs/storage01

#store_path1=/home/yuqing/fastdfs1

23. [group2]

# group settings for group #2

# since v1.14

# when support multi-group, uncomment following section as neccessary

#组2的设置

#若本存储服务器支持多组, 取消下面的注释

#[group2]

#group_name=group2

#storage_server_port=23000

#store_path_count=1

#store_path0=/usr/local/fastdfs/storage01

 

上一篇:Linux环境下搭建FastDFS文件管理系统


下一篇:分布式文件系统-FastDFS(单机版)