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
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
解决方案 »
- 动态库的使用和编译平台的内核版本还有gcc版本有关系吗?
- 这两个虚拟机无法上网的问题,大谢。!
- arm-linux执行可执行文件,找不到动态链接库
- docker: Error response from daemon: network dockernet not found.
- 用VMware做PXE实验,客户端访问tftp服务总是超时。
- RK3288+RTL8201F-VB-CG网卡芯片,kernel3.10配置问题?
- shell脚本内有sed命令,转成可执行后报错sed: can't read /home/.../TBCxiug: No such file or direc
- kali如何配置两张无线网卡?
- Centos7开机停留在A start job is running for wait for Plymouth Boot Screen to Quit
- putty连接centOS拒绝(用winscp也拒绝了)
- 请问这该如何解决
- 通过http访问svn,输入账号密码后提示错误
# cd /usr/local/src/fastdfs-nginx-module/src
# vim mod_fastdfs.conf
# 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
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
在nginx.conf文件里加一条:user root; 就可以解决在浏览器访问url 404的问题了
在nginx.conf文件里的第一句加一条:user root; 就可以解决在浏览器访问url 404的问题了还不行就检查下你的文件存储的位置是否对