FastDFS 配置文件 storage.conf

FastDFS 版本5.05
配置文件分为三部分   
控制器:
tracker.conf
存储器:storage.conf
客户端:client.conf

文件位置: /etc/fdfs storage.conf


基本配置 (基础配置,不考虑性能调优情况下)
group_name=group1                               # 组名    指定 此 storage server 所在 组(卷)
port=23000                                              #  存储服务端口
base_path=/data/fastdfs-storage             # 设置storage数据文件和日志目录,需预先创建
               
         目录下自动生成 两个文件夹
                                data  存储信息  
                                logs   日志信息 
store_path_count=1                                  # 存储路径个数,需要和 store_path 个数匹配、
store_path0=/data/fastdfs-storage            # 存储路径
#store_path1= /data/fastdfs-storage 2

tracker_server=192.168.116.145:22122       ( 主动连接tracker_server )
                                                                 # tracker 服务器的 IP地址和端口号,如果是单机搭建,IP不要写127.0.0.1,否则启动不成功。
可以忽略 http.server_port=8888                             # 设置 http 端口号


storage.conf
# is this config file disabled
# false for enabled
# true for disabled
disabled=false          false为生效,true不生效
 
# 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 configed correctly.
group_name=group1
# 指定 此 storage server 所在 组(卷)

#如果 注释或者删除这个参数,而从tracker那里获取分组信息
#  则  use_storage_id参数必须设为true 在 tracker.conf 配置文件中
 storage_ids.conf文件必须正确配置



# bind an address of this host
# empty for bind all addresses of this host
bind_addr=
#  绑定ip地址,空值为主机上全部地址
 
# if bind an address of this host when connect to other servers 
# (this storage server as a client)
# true for binding the address configed by above parameter: "bind_addr"
# false for binding any address of this host
client_bind=true
 
# the storage server port      存储服务端口
port=23000
 
# connect timeout in seconds           连接超时时间,针对socket套接字函数connect
# default value is 30s
connect_timeout=30
 
# network timeout in seconds
# default value is 30s
network_timeout=60
#  storage server 网络超时时间,单位为秒。发送或接收数据时,
# 如果在超时时间后还不能发送或接收数据&#
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值