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

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

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

FASTDFS ————扩容group

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

FASTDFS ————扩容group

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

FASTDFS ————扩容group

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的命令,根据安装目录 而定)可查看文件服务器的运行状态和配置信息。

FASTDFS ————扩容group

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-02-14
  • 2022-12-23
  • 2021-07-15
猜你喜欢
  • 2021-12-10
  • 2022-12-23
  • 2022-01-29
  • 2022-12-23
  • 2021-07-22
  • 2021-12-06
  • 2021-07-21
相关资源
相似解决方案