fastDFS上传成功,但是访问404-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

fastDFS上传成功,但是访问404

colin_xun 2017-08-18 16:49:28 5902

我用fastDFS上传成功了,但是访问出现404!
nginx配置

user root;
worker_processes 1;

events {

worker_connections  1024;

}

http {

include       mime.types;
default_type  application/octet-stream;
sendfile        on;
keepalive_timeout  65;
server {
    listen       80;
    server_name  xx.xx.xx.xx;
    location /group1/M00/ {
        #root   html;
        #index  index.html index.htm;
        #root /home/fastdfs;
        ngx_fastdfs_module;
    }
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
}

}

mod_fastdfs.conf

tracker_server=xx.xx.xx.xx:22122


日志

2017/08/18 16:23:12 [emerg] 2061#0: unknown directive "ngx_fastdfs_module" in /mytar/nginx/conf/nginx.conf:47
2017/08/18 16:23:18 [error] 16832#0: *1632 open() "/mytar/nginx/html/home/fastdfs/storage_path/data/00/00/rBF6tFmWnTyAUBxWAABPAO8BNMo002_big.jpg" failed (2: No such file or directory), client:xx.xx.xx.xx, server: xx.xx.xx.xx, request: "GET /home/fastdfs/storage_path/data/00/00/rBF6tFmWnTyAUBxWAABPAO8BNMo002_big.jpg HTTP/1.1", host: "xx.xx.xx.xx"
2017/08/18 16:23:51 [error] 16832#0: *1632 open() "/mytar/nginx/html/home/fastdfs/storage_path/data/00/00/rBF6tFmWnTyAUBxWAABPAO8BNMo002_big.jpg" failed (2: No such file or directory), client: xx.xx.xx.xx, server: xx.xx.xx.xx, request: "GET /home/fastdfs/storage_path/data/00/00/rBF6tFmWnTyAUBxWAABPAO8BNMo002_big.jpg HTTP/1.1", host: "xx.xx.xx.xx"

应用服务中间件 nginx
分享到
取消 提交回答
全部回答(1)
  • 51干警网
    2019-07-17 21:30:27

    灭0. 建议提交工单。

    0 3
开发与运维
使用钉钉扫一扫加入圈子
+ 订阅

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题
推荐课程