FastDFS Tracker端配置文件详解及启动注意事项

今天进行了FastDFS的tracker端的配置,代码发送如下:

# is this config file disabled
# false for enabled
# true for disabled
disabled=false
#当前配置是否不可用false可用,true不可用

# bind an address of this host
# empty for bind all addresses of this host
bind_addr=
#是否绑定IP如果一个服务器上有多个IP则设置哪个IP可用,如果不设置则不限制

# the tracker server port
port=22122
#端口

# connect timeout in seconds
# default value is 30s
connect_timeout=30
#针对socket套接字函数connect的连接超时时间设置

# network timeout in seconds
# default value is 30s
network_timeout=60
#设置网络超时,单位秒,发送或接收数据时,如果在超时时间之后依然不能进行,则本次网络通讯失败

# the base path to store data and log files
base_path=/home/fdfs
#配置保存根目录地址,这个目录必须存在,子目录将自动创建

# max concurrent connections this server supported
max_connections=256
#最大连接数

# work thread count, should <= max_connections
# default value is 4
# since V2.00

work_threads=1
#工作线程数,通常设置为CPU数量

# the method of selecting group to upload files
# 0: round robin
# 1: specify group
# 2: load balance, select the max free space group to upload file
store_lookup=2
#上传组(卷)的方式:0轮询,1:指定,2:负载平衡(剩余空间最大选择)

# which group to upload file
# when store_lookup set to 1, must set store_group to the group name
store_group=group2
#如果上一参数选择1方式,即制定祖名,当前参数用来设置指定的组,如果选择其他方式,当前参数无效

# which storage server to upload file
# 0: round robin (default)
# 1: the first server order by ip address
# 2: the first server order by priority (the minimal)
store_server=0
#同组推送方式0.轮询方式,1.根据ip地址进行排序选择第一个服务器,2.根据优先级进行排序(优先级由storeServer的配置文件中upload_priority属性设置)

# which path(means disk or mount point) of the storage server to upload file
# 0: round robin
# 2: load balance, select the max free space path to upload file

store_path=0
#选择哪个文件目录进行上传(一个StroeServer上面
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值