1. 程式人生 > >fastdfs添加新group註意事項

fastdfs添加新group註意事項

setting 相關 port 總數 定義 wing ast support ssa

fastdfs添加新group註意事項

[TOC]

1. 修改自定義storage id文件

若使用了storage_ids.conf,則需要修改所有的storeage、tracker的storage_ids.conf

2. 修改nginx_http_module模塊配置文件

在所有storage機器上,修改/etc/fdfs/mod_fastdfs.conf

group_name=group1/group2/group3  # 所有組名
group_count = 3  # 組的總數

# 把所有組和目錄都添加上
[group1]
group_name=group1
storage_server_port=23000
store_path_count=3
store_path0=/opt/fastdfs/data/group1/M00
store_path1=/opt/fastdfs/data/group1/M01
store_path2=/opt/fastdfs/data/group1/M02

# group settings for group #2
# since v1.14
# when support multi-group, uncomment following section as neccessary
[group2]
group_name=group2
storage_server_port=23000
store_path_count=3
store_path0=/opt/fastdfs/data/group2/M00
store_path1=/opt/fastdfs/data/group2/M01
store_path2=/opt/fastdfs/data/group2/M02

[group3]
group_name=group3
storage_server_port=23000
store_path_count=3
store_path0=/opt/fastdfs/data/group3/M00
store_path1=/opt/fastdfs/data/group3/M01
store_path2=/opt/fastdfs/data/group3/M02

3. 創建組相關目錄

在所有storage機器上,創建所有組的store_path目錄,重啟nginx服務。

4. 反向代理相應修改

fastdfs添加新group註意事項