- 論壇徽章:
- 0
|
我安裝的是 FastDFS_v5.02.tar.gz ,安裝成功后用代碼上傳和下載都沒(méi)有問(wèn)題,但是上傳后的代碼無(wú)法用http方式請(qǐng)求下載文件,
安裝成功后,F(xiàn)astDFS的配置文件在%FastDFS%/conf目錄下,其中包括
client.conf 客戶端上傳配置文件
storage.conf 文件存儲(chǔ)服務(wù)器配置文件
tracker.conf 負(fù)責(zé)均衡調(diào)度服務(wù)器配置文件
http.conf http服務(wù)器配置文件
有的文章業(yè)有說(shuō)修改ect/fdfs下面的這些文件。我修改的是conf下的。
有些參考文章中說(shuō)要修改tracker.conf 中的
http.disabled=false 還要把include前面的##改成#,但是我發(fā)現(xiàn)在這個(gè)版本中沒(méi)有這個(gè)參數(shù)。
最后測(cè)試上傳成功:
This is FastDFS client test program v5.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
for more detail.
[2016-03-08 18:24:27] DEBUG - base_path=/home/fdfs/fastdfs_tracker, 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.229.207, port=23000
group_name=group1, ip_addr=192.168.229.207, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKjlz1beqFuAMsXGAAALHvS25EA632.jpg
source ip address: 192.168.229.207
file timestamp=2016-03-08 18:24:27
file size=2846
file crc32=4105626688
example file url: 192.168.229.207/group1/M00/00/00/wKjlz1beqFuAMsXGAAALHvS25EA632.jpg
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKjlz1beqFuAMsXGAAALHvS25EA632_big.jpg
source ip address: 192.168.229.207
file timestamp=2016-03-08 18:24:27
file size=2846
file crc32=4105626688
example file url: 192.168.229.207/group1/M00/00/00/wKjlz1beqFuAMsXGAAALHvS25EA632_big.jpg
但是根據(jù)上傳結(jié)果可以無(wú)法用http的方式訪問(wèn)到這個(gè)文件
192.168.229.207/group1/M00/00/00/wKjlz1beqFuAMsXGAAALHvS25EA632.jpg
請(qǐng)高手看看我到底哪里還沒(méi)有弄對(duì)。謝謝 |
|