Fast上传图片失败upload file fail, error no: 2, error info: No such file or directory

报错信息

root@ubuntu:/etc/fdfs# fdfs_test /etc/fdfs/client.conf upload /root/ibfastcommon-1.0.7/fastdfs -5.05/conf/anti-steal.jpg
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.

[2019-12-04 17:58:17] DEBUG - base_path=/data/fastdfs/client, 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, storage server id count: 0

tracker_query_storage_store_list_without_group: 
	server 1. group_name=, ip_addr=10.10.10.128, port=23000

group_name=group1, ip_addr=10.10.10.128, port=23000
storage_upload_by_filename
upload file fail, error no: 2, error info: No such file or directory

Fast上传图片失败upload file fail, error no: 2, error info: No such file or directory_第1张图片
解决:
使用文件的绝对路径
mkdir -p /home/yuqing/fastdfs

这回正常了,查看启动成功与否

[root@localhost FastDHT]# ps -ef |grep track |grep -v ‘grep’
如果测试上传不成功,杀死fdfs相关进程,重新启动即可,这是常用的解决方式之一,一般出问题根据运行日志可追踪到错误源头,主要在于三个配置文件的修改,容易出错,出错后从头滤一遍,就发现问题所在了

参考链接https://www.cnblogs.com/lxcy/p/8134194.html

你可能感兴趣的:(Fast上传图片失败upload file fail, error no: 2, error info: No such file or directory)