fastfds增加磁盘

2020-12-15

1、配置storage.conf文件,vi /etc/fdfs/storage.conf;

base_path = /data1/fastdfs
store_path_count = 2
store_path0 = /data1/fastdfs/storage0
store_path1 = /data2/fastdfs/storage1

systemctl restart fdfs_storage

2、查看新建的目录是否已被fastdfs管理
find /data1/fastfds/storage1 -type f

3、测试上传到指定目录
/usr/bin/fdfs_upload_file /etc/fdfs/client.conf nginx.jpg 192.168.3.172:23000 1

4、在nginx中的配置
vi /etc/fdfs/mod_fastdfs.conf
store_path_count=3
store_path0=/data1/fastdfs/storage0
store_path1=/data2/fastdfs/storage1

nginx -s reload

5、测试的token

分类:Linux | 标签: |

相关日志

评论被关闭!