fastdfs报错:file: ../common/fdfs_global.c, line: 52, the format of filename XXX is invalid

文章已同步到个人博客:http://www.tianshaojiao.com/?p=2010
在使用fastdfs作为文件服务器时,上传文件成功后,访问时报如下错误:


file: ../common/fdfs_global.c, line: 52, 
the format of filename "fserver1/M00/00/00/wKgAo2ASdpaAQWN6AABaAkb2F80722.png" 
is invalid

这里需要修改一下: /etc/fdfs/mod_fastdfs.conf

将里面的配置修改如下:
在这里插入图片描述

将url_have_group_name改为:true
然后重启fastdfs服务和nginx服务即可

jxb1@jxb1-virtual-machine:~/下载/fastdfs-6.9.2$ sudo ./make.sh gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c -I../common -I/usr/local/include In file included from ../common/fdfs_global.c:21: ../common/fdfs_global.h:15:10: fatal error: sf/sf_global.h: 没有那个文件或目录 15 | #include "sf/sf_global.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:28:../common/fdfs_global.o] 错误 1 gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c -I. -Itrunk_mgr -I../common -I../tracker -I../client -Ifdht_client -I/usr/include/fastcommon In file included from ../common/fdfs_global.c:21: ../common/fdfs_global.h:15:10: fatal error: sf/sf_global.h: 没有那个文件或目录 15 | #include "sf/sf_global.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:37:../common/fdfs_global.o] 错误 1 gcc -Wall -Wformat-truncation=0 -Wformat-overflow=0 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O1 -DDEBUG_FLAG -c -o ../common/fdfs_global.o ../common/fdfs_global.c -I../common -I../tracker -I/usr/include/fastcommon In file included from ../common/fdfs_global.c:21: ../common/fdfs_global.h:15:10: fatal error: sf/sf_global.h: 没有那个文件或目录 15 | #include "sf/sf_global.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:62:../common/fdfs_global.o] 错误 1
06-23
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值