Fastdfs ファイル サーバーは複数のストレージを構成します

# 構成コピー storage.conf を作成し、ファイル名 storage1.conf を変更します

cp /etc/fdfs/storage.conf /etc/fdfs/storage1.conf

# storage1.conf 構成を変更します

group_name=グループ2

ポート=23001

base_path=/opt/fastdfs/storage2

store_path0=/opt/fastdfs/storage2

# mod_fastdfs.conf 構成を変更し、各グループの情報を設定します

vi /etc/fdfs/mod_fastdfs.conf

group_name=グループ1/グループ2

グループ数 = 2

[グループ1]

group_name=グループ1

storage_server_port=23000

store_path_count=1

store_path0=/データ/fastdfs/ストレージ

[グループ2]

group_name=グループ2

storage_server_port=23001

store_path_count=1

store_path0=/data/fastdfs/storage2

等々

# ストレージ開始

/usr/bin/fdfs_storaged /etc/fdfs/storage1.conf

# fastdfs ステータス クエリ

/usr/bin/fdfs_monitor /etc/fdfs/client.conf

おすすめ

転載: blog.csdn.net/love_THL/article/details/127447290