nginx fastdfs 配置后 上传ok 访问地址一直是404 求大神协助

范范学习中 2015-04-23 04:30:40
http://XXXXXX/group1/M00/00/00/eBoyzlU4kEmAZZ3EAAAGbsJr4eY979.gif 访问链接

nginx.conf 配置

location /group1/M00 {
root /home/fastdfs/data;
ngx_fastdfs_module;
}
mod_fast 配置
# the group name of the local storage server
group_name=group1

# if the url / uri including the group name
# set to false when uri like /M00/00/00/xxx
# set to true when uri like ${group_name}/M00/00/00/xxx, such as group1/M00/xxx
# default value is false
url_have_group_name = true

# path(disk or mount point) count, default value is 1
# must same as storage.conf
store_path_count=1

# store_path#, based 0, if store_path0 not exists, it's value is base_path
# the paths must be exist
# must same as storage.conf
store_path0=/data/fastdfs
#store_path1=/home/yuqing/fastdfs1
...全文
7077 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
引用 5 楼 oBarcode 的回复:
如果看到这个问题还没解决的。 还有一个原因可能就是权限不够
在nginx.conf文件里加一条:user root; 就可以解决在浏览器访问url 404的问题了

感谢老铁,一天没整出来,你一句话给解决了,收下膝盖!
chenjgyi 2017-11-30
  • 打赏
  • 举报
回复
引用 10 楼 zhuzhi2339 的回复:
怎样解决的,可以贴一下出来吗
在nginx.conf文件里的第一句加一条:user root; 就可以解决在浏览器访问url 404的问题了 还不行就检查下你的文件存储的位置是否对
zhuzhi2339 2017-08-26
  • 打赏
  • 举报
回复
怎样解决的,可以贴一下出来吗
kitscode 2017-05-19
  • 打赏
  • 举报
回复
引用 5 楼 oBarcode 的回复:
如果看到这个问题还没解决的。 还有一个原因可能就是权限不够 在nginx.conf文件里加一条:user root; 就可以解决在浏览器访问url 404的问题了
我弄了快一天了,大哥很给力
迟到的help 2017-04-13
  • 打赏
  • 举报
回复
感谢5L ,按你说的问题解决
oBarcode 2017-03-26
  • 打赏
  • 举报
回复
如果看到这个问题还没解决的。 还有一个原因可能就是权限不够 在nginx.conf文件里加一条:user root; 就可以解决在浏览器访问url 404的问题了
cocoabird 2016-10-12
  • 打赏
  • 举报
回复
#http://192.168.158.130/group1/M00/00/00/wKiegldP8u6AJ5u7AADtVgGdiYo511.jpg server { listen 80; server_name 192.168.158.130; 这里需要是本机(虚拟机)的IP地址 location /group1/M00/{ root /home/yuqing/fastdfs/data/; ngx_fastdfs_module; storage.cong store_path0=/home/yuqing/fastdfs #文件保存路径 mod_fastdfs.conf 配置 store_path0=/home/yuqing/fastdfs#文件保存路径 这是以前的帖子:http://bbs.csdn.net/topics/391960604?page=1
baidu_28702375 2016-10-12
  • 打赏
  • 举报
回复
# connect timeout in seconds # default value is 30s connect_timeout=2 # network recv and send timeout in seconds # default value is 30s network_timeout=30 # the base path to store log files base_path=/home/iflytek/fastdfs # if load FastDFS parameters from tracker server # since V1.12 # FastDFS tracker_server can ocur more than once, and tracker_server format is # "host:port", host can be hostname or ip address # valid only when load_fdfs_parameters_from_tracker is true tracker_server=192.168.83.104:22122 tracker_server=192.168.83.105:22122 # the port of the local storage server # the default value is 23000 storage_server_port=23000 # the group name of the local storage server group_name=group1/goup2-----------------------------------------------------yao jieshi! # if the url / uri including the group name # set to false when uri like /M00/00/00/xxx # set to true when uri like ${group_name}/M00/00/00/xxx, such as group1/M00/xxx # default value is false url_have_group_name = true # path(disk or mount point) count, default value is 1 # must same as storage.conf store_path_count=1 # store_path#, based 0, if store_path0 not exists, it's value is base_path # the paths must be exist # must same as storage.conf store_path0=/home/iflytek/fastdfs #store_path1=/home/yuqing/fastdfs1 #include http.conf(注意此处仅保留一个#) # set the group count # set to none zero to support multi-group # set to 0 for single group only # groups settings section as [group1], [group2], ..., [groupN] # default value is 0 # since v1.14 group_count = # group settings for group #1 # since v1.14 # when support multi-group, uncomment following section [group1] group_name=group1 storage_server_port=23000 store_path_count=1 store_path0=/home/iflytek/fastdfs #store_path1=/home/yuqing/fastdfs1 # group settings for group #2 # since v1.14 # when support multi-group, uncomment following section as necessary [group2] group_name=group2 storage_server_port=23000 store_path_count=1 store_path0=/home/iflytek/fastdfs
baidu_28702375 2016-10-12
  • 打赏
  • 举报
回复
  检查并修改mod_fastdfs.conf配置 # cd /usr/local/src/fastdfs-nginx-module/src # vim mod_fastdfs.conf
易先生3729 2015-11-19
  • 打赏
  • 举报
回复
同求

18,771

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧