- 论坛徽章:
- 0
|
linux 版本 CentOS release 6.5
libevent 版本 1.4.13-4.el6
FastDFS_v3.03.tar.gz
fastdfs-nginx-module_v1.08.tar.gz
nginx-1.6.0
在以上环境下,通过/usr/local/bin/fdfs_test /etc/fdfs/client.conf upload /www/test.txt 上传文件测试
- This is FastDFS client test program v3.03
- 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.
- [2014-08-05 09:10:29] INFO - base_path=/www/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0
- tracker_query_storage_store_list_without_group:
- server 1. group_name=2012, ip_addr=172.19.xx.x, port=23000
- group_name=2012, ip_addr=172.19.xx.x, port=23000
- [2014-08-05 09:10:29] DEBUG - file: tracker_proto.c, line: 48, server: 172.19.xx.x:23000, response status 2 != 0
- [2014-08-05 09:10:29] DEBUG - file: tracker_proto.c, line: 48, server: 172.19.xx.x:23000, response status 2 != 0
- storage_upload_by_filename
- upload file fail, error no: 2, error info: No such file or directory
复制代码 上传返回错误,此时stroage日志
ERROR - file: storage_service.c, line: 5328, client ip: 172.19.xx.x, stat logic file M00/00/00/rBMzBFPgLwUIAAAAAAAAB2M22qkAAAAAgP_tzQAAAAf046.txt fail, errno: 2, error info: No such file or directory
但是通过浏览器访问172.19.xx.x:8000/2012/M00/00/00/rBMzBFPgLwUIAAAAAAAAB2M22qkAAAAAgP_tzQAAAAf046.txt
可以访问到该文件,求各位大大解惑?谢谢
此时通过/usr/local/bin/fdfs_monitor /etc/fdfs/client.conf
查看服务状态- INFO - base_path=/www/fastdfs, connect_timeout=30, network_timeout=60, tracker_server_count=1, anti_steal_token=0, anti_steal_secret_key length=0
- server_count=1, server_index=0
- tracker server is 172.19.xx.x:22122
- group count: 1
- Group 1:
- group name = 2012
- disk free space = 39 GB
- trunk free space = 0 GB
- storage server count = 1
- active server count = 1
- storage server port = 23000
- storage HTTP port = 8823
- store path count = 1
- subdir count per path = 256
- current write server index = 0
- current trunk file id = 5
- Storage 1:
- ip_addr = 172.19.xx.x ACTIVE
- http domain =
- version = 3.03
- join time = 2014-07-10 04:13:55
- up time = 2014-08-04 17:46:55
- total storage = 49GB
- free storage = 39GB
- upload priority = 10
- store_path_count = 1
- subdir_count_per_path = 256
- storage_port = 23000
- storage_http_port = 8823
- current_write_path = 0
- source ip_addr =
- if_trunk_server= 1
- total_upload_count = 1074
- success_upload_count = 1074
- total_append_count = 0
- success_append_count = 0
- total_set_meta_count = 10
- success_set_meta_count = 10
- total_delete_count = 0
- success_delete_count = 0
- total_download_count = 0
- success_download_count = 0
- total_get_meta_count = 0
- success_get_meta_count = 0
- total_create_link_count = 0
- success_create_link_count = 0
- total_delete_link_count = 0
- success_delete_link_count = 0
- total_upload_bytes = 298043074
- success_upload_bytes = 298043074
- total_append_bytes = 0
- success_append_bytes = 0
- stotal_download_bytes = 0
- success_download_bytes = 0
- total_sync_in_bytes = 0
- success_sync_in_bytes = 0
- total_sync_out_bytes = 0
- success_sync_out_bytes = 0
- total_file_open_count = 1087
- success_file_open_count = 1087
- total_file_read_count = 0
- success_file_read_count = 0
- total_file_write_count = 1899
- success_file_write_count = 1899
- last_heart_beat_time = 2014-08-05 09:19:55
- last_source_update = 2014-08-05 09:15:30
- last_sync_update = 1970-01-01 07:00:00
- last_synced_timestamp = 1970-01-01 07:00:00
复制代码 谢谢各位高手 |
|