FASTDFS ————扩容group

基于group模式的文件存储扩容(增加sotre_path数量)

1.停止现有的tracker服务,storage服务,操作指令如:service fdfs_storaged stop ;

2.修改/etc/fdfs/storage.conf配置文件,修改字段store_path_count,新增store_path1文件存储路径,新建store_path1的文件目录;

 3.修改/etc/fdfs/storage.conf/mod_fastdfs.conf配置文件,修改字段store_path_count,新增store_path1文件存储路径,设置group1的配置信息;

4.修改/application/nginx/conf/nginx.conf配置文件,增加store_path1的访问代理;

5.调整/etc/fdfs/tracker.conf  中得storage_path=2(平衡处理,选择空间大的上传,0为轮询)

            6.重新启动tracker,storage,nginx服务,通过命令 /usr/bin/fdfs_monitor       /etc/fdfs/storage.conf( /usr/bin/fdfs_monitor为f调用astdfs的命令,根据安装目录 而定)可查看文件服务器的运行状态和配置信息。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章