FastDFS常用命令

时间:2022-06-12 00:54:15

监控服务器状态命令:fdfs_monitor

/usr/bin/fdfs_monitor /etc/fdfs/client.conf

上传文件命令:fdfs_upload_file

/usr/bin/fdfs_upload_file /etc/fdfs/client.conf /etc/fdfs/anti-steal.jpg

下载文件命令:fdfs_download_file

/usr/bin/fdfs_download_file /etc/fdfs/client.conf group1/M00/00/00/rBBVjF--IlSAHCbkAABdreSfEnY475.jpg

查看文件信息命令:fdfs_file_info

/usr/bin/fdfs_file_info /etc/fdfs/client.conf group1/M00/00/00/rBBVjF--IlSAHCbkAABdreSfEnY475.jpg

删除文件命令:fdfs_delete_file

/usr/bin/fdfs_delete_file /etc/fdfs/client.conf group1/M00/00/00/rBBVjF--IlSAHCbkAABdreSfEnY475.jpg

文件追加上传及追加内容指令:fdfs_upload_appender & fdfs_append_file

# 上传需要追加内容的文件
fdfs_upload_appender /etc/fdfs/client.conf ./aa.txt
group1/M00/00/00/rBBVjF--_kiEAo6TAAAAAFKp30k081.txt
# 追加内容
fdfs_append_file /etc/fdfs/client.conf group1/M00/00/00/rBBVjF--_kiEAo6TAAAAAFKp30k081.txt bb.txt