[root@clinet1 fdfs]# netstat -antp|grep fdfs
tcp 0 0 192.168.43.130:8888 0.0.0.0:* LISTEN 12724/fdfs_storaged
tcp 0 0 192.168.43.130:23000 0.0.0.0:* LISTEN 12724/fdfs_storaged
tcp 0 0 192.168.43.130:54911 192.168.43.129:22122 ESTABLISHED 12724/fdfs_storaged
测试:
在storage服务器里面执行:
[root@clinet1 ~]# /usr/local/FastDFS/bin/fdfs_test /etc/fdfs/client.conf upload hello.html
This is FastDFS client test program v3.02
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.
[2013-02-28 20:09:30] INFO - base_path=/home/data/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=group1, ip_addr=192.168.43.130, port=23000
group_name=group1, ip_addr=192.168.43.130, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKgrglEvSPqtBR-EAAAADcvnyC854.html
source ip address: 192.168.43.130
file timestamp=2013-02-28 20:09:30
file size=13
file crc32=3420964911
file url: http://192.168.43.129:8090/group1/M00/00/00/wKgrglEvSPqtBR-EAAAADcvnyC854.html
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKgrglEvSPqtBR-EAAAADcvnyC854_big.html
source ip address: 192.168.43.130
file timestamp=2013-02-28 20:09:30
file size=13
file crc32=3420964911
file url: http://192.168.43.129:8090/group1/M00/00/00/wKgrglEvSPqtBR-EAAAADcvnyC854_big.html
####上述就说明hello.html这个文件已经被上传到192.168.43.129 tracker服务器中 然后使用http://192.168.43.129:8090/group1/M00/00/00/wKgrglEvSPqtBR-EAAAADcvnyC854_big.html即可访问