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

group_count = 2

[그룹1]

group_name=그룹1

storage_server_port=23000

store_path_count=1

store_path0=/data/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

Supongo que te gusta

Origin blog.csdn.net/love_THL/article/details/127447290
Recomendado
Clasificación