JAVA全系列 教程
3762个小节阅读:7094.6k
目录
C语言快速入门
JAVA全系列 教程
面向对象的程序设计语言
Python全系列 教程
Python3.x版本,未来主流的版本
人工智能 教程
顺势而为,AI创新未来
大厂算法 教程
算法,程序员自我提升必经之路
C++ 教程
一门通用计算机编程语言
微服务 教程
目前业界流行的框架组合
web前端全系列 教程
通向WEB技术世界的钥匙
大数据全系列 教程
站在云端操控万千数据
AIGC全能工具班
A A
White Night
xxxxxxxxxx
fdfs_upload_file <config_file> <local_filename> [storage_ip:port] [store_path_index]
参数含义:
- <config_file> :配置文件路径
- <local_filename> :本地文件路径
- [storage_ip:port] :(可选参数)
- [store_path_index] :(可选参数)
xxxxxxxxxx
[root@tracker fdfs]# fdfs_upload_file /etc/fdfs/client.conf 上传的文件路径
注意:
上传文件后会返回文件在FastDFS中的唯一文件标识,即卷名+文件名
指令参数
xxxxxxxxxx
fdfs_download_file <config_file> <file_id> [local_filename] [<download_offset> <download_bytes>]
参数含义:
- <config_file> :配置文件路径
- <file_id> :文件在FastDFS中的唯一文件标识,即卷名+文件名
- [local_filename] :文件下载地址
- <download_offset> :(可选参数)文件下载开始时间
- <download_bytes> :(可选参数)文件下载的字节数
xxxxxxxxxx
[root@tracker fdfs]# fdfs_download_file /etc/fdfs/client.conf group1/M00/00/00/wKhygVwnUUOAcgYHCCZp2Ahsb3g964.rpm /root/java/xxx.rpm
xxxxxxxxxx
fdfs_file_info <config_file> <file_id>
参数含义:
- <config_file> :配置文件路径
- <file_id> :文件在FastDFS中的唯一文件标识,即卷名+文件名
xxxxxxxxxx
[root@tracker fdfs]# fdfs_file_info /etc/fdfs/client.conf group1/M00/00/00/wKhygVwnUUOAcgYHCCZp2Ahsb3g964.rpm
xxxxxxxxxx
fdfs_delete_file <config_file> <file_id>
参数含义:
- <config_file> :配置文件路径
- <file_id> :文件在FastDFS中的唯一文件标识,即卷名+文件名
xxxxxxxxxx
[root@tracker fdfs]# fdfs_delete_file /etc/fdfs/client.conf group1/M00/00/00/wKhygVwnUUOAcgYHCCZp2Ahsb3g964.rpm
注意:
删除指令使用后,文件在该卷中的所有备份都会被删除,因为卷内的存储节点会相互同步,故慎用。
1.FastDFS分布式文件系统中如何上传文件___。
A fdfs_delete_file
B fdfs_info_file
C fdfs_upload_file
D fdfs_download_file
2. FastDFS分布式文件系统中如何下载文件____。
A fdfs_delete_file
B fdfs_info_file
C fdfs_upload_file
D fdfs_download_file
1=>C 2=>D