Centos6.10-FastDFS-Storage.conf配置示例
# is this config file disabled
# false for enabled
# true for disabled
disabled = false # the name of the group this storage server belongs to
#
# comment or remove this item for fetching from tracker server,
# in this case, use_storage_id must set to true in tracker.conf,
# and storage_ids.conf must be configured correctly.
group_name = group1 # bind an address of this host
# empty for bind all addresses of this host
bind_addr = # if bind an address of this host when connect to other servers
# (this storage server as a client)
# true for binding the address configured by the above parameter: "bind_addr"
# false for binding any address of this host
client_bind = true # the storage server port
port = # connect timeout in seconds
# default value is
# Note: in the intranet network (LAN), seconds is enough.
connect_timeout = # network timeout in seconds for send and recv
# default value is
network_timeout = # the heart beat interval in seconds
# the storage server send heartbeat to tracker server periodically
# default value is
heart_beat_interval = # disk usage report interval in seconds
# the storage server send disk usage report to tracker server periodically
# default value is
stat_report_interval = # the base path to store data and log files
# NOTE: the binlog files maybe are large, make sure
# the base path has enough disk space,
# eg. the disk free space should > 50GB
# base_path = /home/yuqing/fastdfs
base_path = /opt/fastdfs/ # max concurrent connections the server supported,
# you should set this parameter larger, eg.
# default value is
max_connections = # the buff size to recv / send data from/to network
# this parameter must more than 8KB
# 256KB or 512KB is recommended
# default value is 64KB
# since V2.
buff_size = 256KB # accept thread count
# default value is which is recommended
# since V4.
accept_threads = # work thread count
# work threads to deal network io
# default value is
# since V2.
work_threads = # if disk read / write separated
## false for mixed read and write
## true for separated read and write
# default value is true
# since V2.
disk_rw_separated = true # disk reader thread count per store path
# for mixed read / write, this parameter can be
# default value is
# since V2.
disk_reader_threads = # disk writer thread count per store path
# for mixed read / write, this parameter can be
# default value is
# since V2.
disk_writer_threads = # when no entry to sync, try read binlog again after X milliseconds
# must > , default value is 200ms
sync_wait_msec = # after sync a file, usleep milliseconds
# for sync successively (never call usleep)
sync_interval = # storage sync start time of a day, time format: Hour:Minute
# Hour from to , Minute from to
sync_start_time = : # storage sync end time of a day, time format: Hour:Minute
# Hour from to , Minute from to
sync_end_time = : # write to the mark file after sync N files
# default value is
write_mark_file_freq = # disk recovery thread count
# default value is
# since V6.
disk_recovery_threads = # store path (disk or mount point) count, default value is
store_path_count = # store_path#, based on , to configure the store paths to store files
# if store_path0 not exists, it's value is base_path (NOT recommended)
# the paths must be exist.
#
# IMPORTANT NOTE:
# the store paths' order is very important, don't mess up!!!
# the base_path should be independent (different) of the store paths #store_path0 = /home/yuqing/fastdfs
#store_path1 = /home/yuqing/fastdfs2
store_path0 = /opt/fastdfs/data # subdir_count * subdir_count directories will be auto created under each
# store_path (disk), value can be to , default value is
subdir_count_per_path = # tracker_server can ocur more than once for multi tracker servers.
# the value format of tracker_server is "HOST:PORT",
# the HOST can be hostname or ip address,
# and the HOST can be dual IPs or hostnames seperated by comma,
# the dual IPS must be an inner (intranet) IP and an outer (extranet) IP,
# or two different types of inner (intranet) IPs.
# for example: 192.168.2.100,122.244.141.46:
# another eg.: 192.168.1.10,172.17.4.21: tracker_server = 192.168.125.155:22122
#tracker_server = 192.168.209.122: #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 #unix group name to run this program,
#not set (empty) means run by the group of current user
run_by_group = #unix username to run this program,
#not set (empty) means run by current user
run_by_user = # allow_hosts can ocur more than once, host can be hostname or ip address,
# "*" (only one asterisk) means match all ip addresses
# we can use CIDR ips like 192.168.5.64/
# and also use range like these: 10.0..[-] and host[-,-].domain.com
# for example:
# allow_hosts=10.0..[-,]
# allow_hosts=host[-,-].domain.com
# allow_hosts=192.168.5.64/
allow_hosts = * # the mode of the files distributed to the data path
# : round robin(default)
# : random, distributted by hash code
file_distribute_path_mode = # valid when file_distribute_to_path is set to (round robin).
# when the written file count reaches this number, then rotate to next path.
# rotate to the first path (/) after the last path (such as FF/FF).
# default value is
file_distribute_rotate_count = # call fsync to disk when write big file
# : never call fsync
# other: call fsync when written bytes >= this bytes
# default value is (never call fsync)
fsync_after_written_bytes = # sync log buff to disk every interval seconds
# must > , default value is seconds
sync_log_buff_interval = # sync binlog buff / cache to disk every interval seconds
# default value is seconds
sync_binlog_buff_interval = # sync storage stat info to disk every interval seconds
# default value is seconds
sync_stat_file_interval = # thread stack size, should >= 512KB
# default value is 512KB
thread_stack_size = 512KB # the priority as a source server for uploading file.
# the lower this value, the higher its uploading priority.
# default value is
upload_priority = # 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
# default values is empty
if_alias_prefix = # if check file duplicate, when set to true, use FastDHT to store file indexes
# or yes: need check
# or no: do not check
# default value is
check_file_duplicate = # file signature method for check file duplicate
## hash: four bits hash code
## md5: MD5 signature
# default value is hash
# since V4.
file_signature_method = hash # namespace for storing file indexes (key-value pairs)
# this item must be set when check_file_duplicate is true / on
key_namespace = FastDFS # set keep_alive to to enable persistent connection with FastDHT servers
# default value is (short connection)
keep_alive = # you can use "#include filename" (not include double quotes) directive to
# load FastDHT server list, when the filename is a relative path such as
# pure filename, the base path is the base path of current/this config file.
# must set FastDHT server list when check_file_duplicate is true / on
# please see INSTALL of FastDHT for detail
##include /home/yuqing/fastdht/conf/fdht_servers.conf # if log to access log
# default value is false
# since V4.
use_access_log = false # if rotate the access log every day
# default value is false
# since V4.
rotate_access_log = false # rotate access log time base, time format: Hour:Minute
# Hour from to , Minute from to
# default value is :
# since V4.
access_log_rotate_time = : # if compress the old access log by gzip
# default value is false
# since V6.
compress_old_access_log = false # compress the access log days before
# default value is
# since V6.
compress_access_log_days_before = # if rotate the error log every day
# default value is false
# since V4.
rotate_error_log = false # rotate error log time base, time format: Hour:Minute
# Hour from to , Minute from to
# default value is :
# since V4.
error_log_rotate_time = : # if compress the old error log by gzip
# default value is false
# since V6.
compress_old_error_log = false # compress the error log days before
# default value is
# since V6.
compress_error_log_days_before = # rotate access log when the log file exceeds this size
# means never rotates log file by log file size
# default value is
# since V4.
rotate_access_log_size = # rotate error log when the log file exceeds this size
# means never rotates log file by log file size
# default value is
# since V4.
rotate_error_log_size = # keep days of the log files
# means do not delete old log files
# default value is
log_file_keep_days = # if skip the invalid record when sync file
# default value is false
# since V4.
file_sync_skip_invalid_record = false # if use connection pool
# default value is false
# since V4.
use_connection_pool = true # connections whose the idle time exceeds this time will be closed
# unit: second
# default value is
# since V4.
connection_pool_max_idle_time = # if compress the binlog files by gzip
# default value is false
# since V6.
compress_binlog = true # try to compress binlog time, time format: Hour:Minute
# Hour from to , Minute from to
# default value is :
# since V6.
compress_binlog_time = : # if check the mark of store path to prevent confusion
# recommend to set this parameter to true
# if two storage servers (instances) MUST use a same store path for
# some specific purposes, you should set this parameter to false
# default value is true
# since V6.
check_store_path_mark = true # use the ip address of this storage server if domain_name is empty,
# else this domain name will ocur in the url redirected by the tracker server
http.domain_name = # the port of the web server on this storage server
# http.server_port =
http.server_port =
Centos6.10-FastDFS-Storage.conf配置示例的更多相关文章
- 《亲测》nginx webscoket ssl conf配置示例
非crt证书,用的pem,其中 http://localhost:5003 是你要转发到的站点网址 配置的就是 server { listen 80; server_name smarthome.yi ...
- 使用docker安装centos6.10镜像并安装新版gcc
使用docker安装centos6.10镜像并安装新版gcc 环境:Linux Ubuntu 16.04.7 LTS 目录 使用docker安装centos6.10镜像并安装新版gcc 使用docke ...
- FastDFS配置文件(storage.conf)
# 该配置文件是否生效 # false:生效 # true:无效 disabled=false # 本storage server所属组名 group_name=group1 # 绑定IP # 后面为 ...
- FastDFS安装、配置、部署(三)-Storage配置具体解释
1.基本配置 # is this config file disabled # false for enabled # true for disabled disabled=false # the n ...
- FastDFS 配置文件 storage.conf
FastDFS 版本5.05 配置文件分为三部分 控制器:tracker.conf存储器:storage.conf 客户端:client.conf 文件位置:/etc/fdfsstorage.co ...
- FastDFS安装和配置,整合Nginx-1.13.3
目录: 一:下载FastDFS 二:安装FastDFS 三:配置 四:整合Nginx和FastDFS FastDFS is an open source high performance distr ...
- fastdfs 集群配置
fastdfs 简介FastDFS是一个国产开源的轻量级分布式文件系统,它对文件进行管理,功能包括:文件存储.文件同步.文件访问(文件上传.文件下载)等,解决了大容量存储和负载均衡的问题.特别适合以文 ...
- FastDFS、nginx配置手记
第一部分 FastDFS介绍 1.FastDFS是什么 FastDFS是一款类Google FS的开源分布式文件系统,它用纯C语言实现,支持Linux.FreeBSD.AIX等UNIX系统.它只能 ...
- 分布式文件系统FastDFS介绍和配置过程
http://ylw6006.blog.51cto.com/470441/948729/ 由于网站使用nfs共享方式保存用户上传的图片,附件等资料,然后通过apache下载的方式供用户访问,在网站架构 ...
随机推荐
- Python之QRCode
目录 一.基本介绍 介绍 QRCode二维码版本展示 QRCode方法 常用函数 二.安装QRCode 三.基本案例 生成普通二维码: 生成带有图片的二维码: 四.制作动态二维码 安装 myqr 和 ...
- Ubuntu切换默认sh为bash或者dash
Ubuntu切换默认sh为bash或者dash 1 bash与dash 从Ubuntu 6.10开始,默认使用dash(theDebian Almquist Shell)而不是bash(the G ...
- Book: The TimeViz Browser
website; A visual survey of visualization techniques for time-oriented data. 1. Left pannel ----- fi ...
- [CF]Round 516
A Make a triangle! 题意:给定三根线段,问最少要延长多少才能拼成一个三角形. 数学题. B Equations of Mathematical Magic 题意:求$a - (a \ ...
- 294. 翻转游戏 II
题目: 链接:https://leetcode-cn.com/problems/flip-game-ii/ 你和朋友玩一个叫做「翻转游戏」的游戏,游戏规则:给定一个只有 + 和 - 的字符串.你和朋友 ...
- mysql 原有的主键情况下设置自增字段
mysql 的自增字段只能是主键,如果原表已经有主键,需要设置自增字段应该怎么做呢? 1.alter table bu_staff drop primary key; 先删除表的主键 id为原表 ...
- 极客工具,PDF合并工具
前言 这两天一番花两天的时间,重新用python和python图形化开发工具tkinter,完善了下PDF合并小工具,终于可以发布了. 工具目前基本功能已经完善,后期如果有反馈可以修复部分bug或完善 ...
- mybatis-plus - 初识
一. 集成 pom.xml <dependency> <groupId>com.alibaba</groupId> <artifactId>druid& ...
- SpringBoot整合WEB开发--(一)处理JSON返回数据
1.使用默认的json转换HttpessageConverter Json是目前主流的前后端数据传输方式,SpringMVC中使用消息转化器HttpMessageConverter对JSON的转换提供 ...
- python之路之反射
这个是上两个的加强版