免费注册 查看新帖 |

Chinaunix

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

[FastDFS] 通过浏览器访问上传文件报404错误,请求解决方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-05-19 15:05 |只看该作者 |倒序浏览
浏览器访问上传文件报404错误,请求解决方法

错误日志信息:
2016/05/19 00:01:49 [notice] 44454#0: signal process started
ngx_http_fastdfs_set pid=42621
ngx_http_fastdfs_process_init pid=44455
[2016-05-19 00:01:49] INFO - fastdfs apache / nginx module v1.15, response_mode=proxy, base_path=/tmp, url_have_group_name=1, group_name=group1, storage_server_port=23000, path_count=1, store_path0=/fastdfs/storage, connect_timeout=10, network_timeout=30, tracker_server_count=1, if_alias_prefix=, local_host_ip_count=2, anti_steal_token=0, token_ttl=0s, anti_steal_secret_key length=0, token_check_fail content_type=, token_check_fail buff length=0, load_fdfs_parameters_from_tracker=1, storage_sync_file_max_delay=86400s, use_storage_id=0, storage server id count=0, flv_support=1, flv_extension=flv
ngx_http_fastdfs_process_exit pid=44420
2016/05/19 00:02:02 [error] 44455#0: *32 open() "/usr/local/nginx/html/M00/00/00/wKgAklc9K1CAZ28sAAFvqRMDpAM198.jpg" failed (2: No such file or directory), client: 192.168.0.103, server: localhost, request: "GET /M00/00/00/wKgAklc9K1CAZ28sAAFvqRMDpAM198.jpg HTTP/1.1", host: "192.168.0.146:8888"

nginx.conf 配置
    server {
        listen       8888;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location ~/group([0-9])/MOO {
                alias /fastdfs/storage/data;
                ngx_fastdfs_module;
        }

论坛徽章:
2
IT运维版块每日发帖之星
日期:2016-04-08 06:20:00IT运维版块每日发帖之星
日期:2016-05-26 06:20:00
2 [报告]
发表于 2016-05-24 17:35 |只看该作者
alias 不应该是 root 才对吗

论坛徽章:
0
3 [报告]
发表于 2016-05-25 12:46 |只看该作者
已解决了。
把这句屏蔽了就可以了   #alias /fastdfs/storage/data;
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP