安装完成后进行测试
一、修改/etc/fdfs/client.conf
- tracker_server 根据自己部署虚拟机的情况配置
- base_path=/home/fastdfs
tracker_server=192.168.101.3:22122
二、使用格式:
- /usr/bin/fdfs_test 客户端配置文件地址 upload 上传文件
- 比如将/home 下的图片上传到 FastDFS 中:
/usr/bin/fdfs_test /etc/fdfs/client.conf upload /home/tomcat.png
三、打印日志如下
This is FastDFS client test program v5.05
Copyright (C) 2008, Happy Fish / YuQing
FastDFS may be copied only under the terms of the GNU General
Public License V3, which may be found in the FastDFS source kit.
Please visit the FastDFS Home Page http://www.csource.org/
for more detail.
[2015-05-18 02:07:10] DEBUG - base_path=/home/FastDFS, connect_timeout=30,
network_timeout=60, tracker_server_count=1, anti_steal_token=0,
anti_steal_secret_key length=0, use_connection_pool=0,
g_connection_pool_max_idle_time=3600s, use_storage_id=0,