搭建fastDFS爬坑记录(三)

本文记录了FastDFS的安装测试过程,包括修改client.conf配置文件,设置tracker_server和base_path,以及使用fdfs_test命令上传文件,并解析了上传文件的下载路径和在storage服务器上的实际位置。
摘要由CSDN通过智能技术生成

安装完成后进行测试

一、修改/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, 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值