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