免费注册 查看新帖 |

Chinaunix

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

[FastDFS] fastdfsv4.06+nginx无法下载文件 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-06-08 20:29 |只看该作者 |倒序浏览
本帖最后由 tgnan 于 2013-06-10 18:28 编辑

各位:
     目前在测试使用FDFS结合Nginx时,遇到无法下载文件的问题。
部署情况:
192.168.12.160   Tracker Server   Nginx+mod_fastdfs_nginx
storage和tracker部署在一起

版本情况:
FastDFS V4.06
nginx-1.5.1
libevent-2.0.21
fastdfs-nginx-module_v1.15

fdfs_test本机测试,上传正常,但不能下载。

浏览器里的nginx提示如下:
400 Bad Request

nginx/1.5.1
nginx日志提示如下:

ngx_http_fastdfs_process_init pid=2432
[2013-06-08 20:10:55] ERROR - file: ../common/fdfs_global.c, line: 52, the format of filename "group1/M00/00/00/wKgMoFGzH0SAYDnzAAAM0-7zv4I974.cfg" is invalid
2013/06/08 20:10:55 [error] 2432#0: *2 open() "/usr/local/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.75.184, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.12.160:8080"
[2013-06-08 20:20:49] ERROR - file: ../common/fdfs_global.c, line: 52, the format of filename "group1/M00/00/00/wKgMoFGzH0SAYDnzAAAM0-7zv4I974.cfg" is invalid
2013/06/08 20:20:49 [error] 2432#0: *4 open() "/usr/local/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.75.184, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.12.160:8080"
[2013-06-08 20:24:56] ERROR - file: ../common/fdfs_global.c, line: 52, the format of filename "group1/M00/00/00/wKgMoFGzIZeAY9siAAAM0-7zv4I058.cfg" is invalid
2013/06/08 20:24:56 [error] 2432#0: *6 open() "/usr/local/nginx/html/favicon.ico" failed (2: No such file or directory), client: 192.168.75.184, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "192.168.12.160:8080"

nginx.config配置如下:

server {
        listen       8080;
        server_name  localhost;

        location /group1/M00/ {
                ngx_fastdfs_module;
         }

    }
   
    server {
        listen       8888;

         location /group1/M00/ {
                root /opt/fastdfs/data;
                ngx_fastdfs_module;
         }


        }



望指教!!!

论坛徽章:
0
2 [报告]
发表于 2013-06-09 09:21 |只看该作者
默认不需要group,把group去掉

论坛徽章:
0
3 [报告]
发表于 2013-06-09 10:57 |只看该作者
yasenagat 发表于 2013-06-09 09:21
默认不需要group,把group去掉




借问下,
你说的把group配置去掉,

与我的不能下载文件有关系吗?

论坛徽章:
0
4 [报告]
发表于 2013-06-09 12:17 |只看该作者
mod_fastdfs.conf 配置文件中的 store_path 也要注意下配置成正确的路径

论坛徽章:
0
5 [报告]
发表于 2013-06-13 12:24 |只看该作者
还是用3.11吧,

oh god,,,

论坛徽章:
0
6 [报告]
发表于 2013-06-19 09:45 |只看该作者
回复 3# tgnan
有关系呀,其实,你不能下载,就是location配置的问题,如果是默认的安装和配置,不需要那个group。


   

论坛徽章:
0
7 [报告]
发表于 2014-01-20 13:43 |只看该作者
貌似是权限的问题

论坛徽章:
2
IT运维版块每日发帖之星
日期:2016-04-08 06:20:00IT运维版块每日发帖之星
日期:2016-05-26 06:20:00
8 [报告]
发表于 2016-04-05 14:51 |只看该作者
请问楼主问题解决了吗?我也是用了一个group1 , 但是不能请求,报错一样
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP