- 论坛徽章:
- 0
|
本帖最后由 zhanfu86 于 2017-10-16 09:11 编辑
下面是client.conf的
- # connect timeout in seconds
- # default value is 30s
- connect_timeout=30
- # network timeout in seconds
- # default value is 30s
- network_timeout=60
- # the base path to store log files
- base_path=/home/data/fastdfs
- # tracker_server can ocur more than once, and tracker_server format is
- # "host:port", host can be hostname or ip address
- tracker_server=192.168.100.150:22122
- #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=debug
- # if use connection pool
- # default value is false
- # since V4.05
- use_connection_pool = false
- # connections whose the idle time exceeds this time will be closed
- # unit: second
- # default value is 3600
- # since V4.05
- connection_pool_max_idle_time = 3600
- # if load FastDFS parameters from tracker server
- # since V4.05
- # default value is false
- load_fdfs_parameters_from_tracker=false
- # 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 V4.05
- use_storage_id = true
- # 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 V4.05
- storage_ids_filename = storage_ids.conf
- #HTTP settings
- http.tracker_server_port=8080
- #use "#include" directive to include HTTP other settiongs
- ##include http.conf
复制代码 上面include 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
- # 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/data/fastdfs/conf/anti-steal.jpg
- # if support multi regions for HTTP Range
- # default value is true
- http.multi_range.enabed = true
复制代码
|
|