免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7806 | 回复: 8
打印 上一主题 下一主题

[FastDFS] 上传成功,但无法访问返回的U--R--L,求指点 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-01-09 15:53 |只看该作者 |倒序浏览

[root@localhost fdfs]# /usr/bin/fdfs_test /etc/fdfs/client.conf upload 0004.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 (u-r-l: h-t-t-p://)-w-w-w.csource.o-r-g/
for more detail.

[2015-01-09 15:36:43] DEBUG - base_path=/home/iflytek/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.83.108, port=23000

group_name=group1, ip_addr=192.168.83.108, port=23000
storage_upload_by_filename
upload file fail, error no: 2, error info: No such file or directory
[root@localhost fdfs]# /usr/bin/fdfs_test /etc/fdfs/client.conf upload /0004.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 (u-r-l: h-t-t-p://)w-w-w.csource.o-r-g/
for more detail.

[2015-01-09 15:37:24] DEBUG - base_path=/home/iflytek/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.83.108, port=23000

group_name=group1, ip_addr=192.168.83.108, port=23000
storage_upload_by_filename
group_name=group1, remote_filename=M00/00/00/wKhTbFSvhTSAWB5UAAV5Z9noZEw805.jpg
source ip address: 192.168.83.108
file timestamp=2015-01-09 15:37:24
file size=358759
file crc32=3655885900
example file (u-r-l: h-t-t-p://)192.168.83.108:8888/group1/M00/00/00/wKhTbFSvhTSAWB5UAAV5Z9noZEw805.jpg
storage_upload_slave_by_filename
group_name=group1, remote_filename=M00/00/00/wKhTbFSvhTSAWB5UAAV5Z9noZEw805_big.jpg
source ip address: 192.168.83.108
file timestamp=2015-01-09 15:37:25
file size=358759
file crc32=3655885900
example file (u-r-l: h-t-t-p://)192.168.83.108:8888/group1/M00/00/00/wKhTbFSvhTSAWB5UAAV5Z9noZEw805_big.jpg
[root@localhost fdfs]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
num  target     prot opt source               destination         
1    ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:8080

Chain FORWARD (policy ACCEPT)
num  target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
num  target     prot opt source               destination         

[root@localhost fdfs]# service iptables stop
iptables: Flushing firewall rules:                         [  OK  ]
iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
iptables: Unloading modules:                               [  OK  ]
[root@localhost fdfs]# service iptables status
iptables: Firewall is not running.

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2015-02-11 17:34 |只看该作者
回复 1# tftososon


    同问,解决了没有?

论坛徽章:
2
2015年迎新春徽章
日期:2015-03-04 10:16:532015年亚洲杯之伊拉克
日期:2015-03-09 13:57:11
3 [报告]
发表于 2015-02-13 09:47 |只看该作者
回复 2# dwb80


    192.168.83.108:8888/group1/M00/00/00/wKhTbFSvhTSAWB5UAAV5Z9noZEw805.jpg

将group1去除看看,192.168.83.108:8888/M00/00/00/wKhTbFSvhTSAWB5UAAV5Z9noZEw805.jpg

论坛徽章:
0
4 [报告]
发表于 2015-02-13 15:02 |只看该作者
已搞定,谢谢2楼和3楼的朋友!

论坛徽章:
0
5 [报告]
发表于 2015-02-27 14:53 |只看该作者
楼主如何解决的?我的也出现这样的问题了

论坛徽章:
0
6 [报告]
发表于 2015-02-27 14:54 |只看该作者
回复 1# tftososon

大神如何解决的?公司要我用fastDFS,我也出现了这样的问题
   

论坛徽章:
2
2015年迎新春徽章
日期:2015-03-04 10:16:532015年亚洲杯之伊拉克
日期:2015-03-09 13:57:11
7 [报告]
发表于 2015-03-02 09:08 |只看该作者
回复 6# fagefirst


    我说下我的解决办法:
        location /group1/M00{
                alias /data/data;
                ngx_fastdfs_module;
        }
这个是nginx.conf配置, alias /data/data;首先这个是你在linux创建的目录,我创建的目录是:data,在storage和tracker的路径都写为/data。其次location /group1/M00,这里我有指定/group1组,
        所以vi mod_fastdfs.conf
        ##include http.conf 找到这个在前面加一个#, 我安装的是5.5版本的,所以没有http.conf这个配置文件,如果你安装的版本有这个配置文件可以不加#
        url_have_group_name = true 因为我指定了分组,所以这里要设置为true。其次还要确保能正确访问nginx首页才行

论坛徽章:
0
8 [报告]
发表于 2015-03-03 11:25 |只看该作者
回复 7# FILERF


    谢谢楼主,问题解决了

论坛徽章:
0
9 [报告]
发表于 2015-04-14 10:11 |只看该作者
请问楼主,Fastdfs支持断点传续吗》??回复 7# FILERF


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP