fdfs文件上传 response status 2 != 0

Linux主机控制台错误代码:

[2020-06-03 02:08:45] ERROR - file: tracker_proto.c, line: 48, server: 192.168.200.130:22122, response status 2 != 0
[2020-06-03 02:08:45] ERROR - file: tracker_proto.c, line: 48, server: 192.168.200.130:22122, response status 2 != 0
tracker_query_storage fail, error no: 2, error info: No such file or directory

 

修改错误: 

不知道是因为修改了配置文件的原因还是其他原因

参考其他文章尝试了下

 

步骤是首先:pkill -9 fdfs 杀死所有fdfs进程
 
然后加载配置文件启动:
/usr/bin/fdfs_trackerd start /etc/fdfs/tracker.conf
/usr/bin/fdfs_storaged start /etc/fdfs/storage.conf

这里注意的是后面的/etc/fdfs/...  是我的配置文件所在地方,如果你的是其他目录,那就换成自己的目录

 
#执行上传命令可以看到已经成功
[root@yang ~]# /usr/bin/fdfs_test  /etc/fdfs/client.conf  upload  /root/01.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.

[2020-06-03 02:18:16] DEBUG - base_path=/opt/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, storage server id count: 0

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

group_name=group1, ip_addr=192.168.200.130, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKjIgl7Wl-iAJhhyAABiTR6BiQY165.jpg
source ip address: 192.168.200.130
file timestamp=2020-06-03 02:18:16
file size=25165
file crc32=511805702
example file url: http://192.168.200.130/group1/M00/00/00/wKjIgl7Wl-iAJhhyAABiTR6BiQY165.jpg
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKjIgl7Wl-iAJhhyAABiTR6BiQY165_big.jpg
source ip address: 192.168.200.130
file timestamp=2020-06-03 02:18:16
file size=25165
file crc32=511805702
example file url: http://192.168.200.130/group1/M00/00/00/wKjIgl7Wl-iAJhhyAABiTR6BiQY165_big.jpg

 

 

你可能感兴趣的:(linux,#,FastDfs)