file: ini_file_reader.c, line: 1036, include file “http.conf“ not exists, line: “#include http.conf“

fastdfs-nginx-module file: ini_file_reader.c, line: 1036, include file "http.conf" not exists, line: "#include http.conf"

介绍


fastdfs-nginx-module,nginx启动后,文件无法访问报错 include file “http.conf” not exists,

[2021-12-02 16:56:30] ERROR - file: ini_file_reader.c, line: 1036, include file "http.conf" not exists, line: "#include http.conf"
[2021-12-02 16:56:30] ERROR - file: /data/soft/fastdfs-nginx-module/src/common.c, line: 155, load conf file "/data/fdfs/etc/fdfs/mod_fastdfs.conf" fail, ret code: 2
[2021-12-02 16:56:30] INFO - file: ini_file_reader.c, line: 1349, func: checkInitDynamicContentArray, init_pthread_lock
[2021-12-02 16:56:30] INFO - file: ini_file_reader.c, line: 1384, func: checkAllocDynamicContentArray, alloc count: 8
ngx_http_fastdfs_process_init pid=69485

fastdfs-nginx-module报错原因


原因是 etc/fdfs/ 下面没有 http.conf的配置

解决方法


把/FastDFS/conf/http.conf 复制到 etc/fdfs/下面就可以了

cp /data/soft/FastDFS/conf/http.conf /data/fdfs/etc/fdfs/
cp /data/soft/FastDFS/conf/mime.types /data/fdfs/etc/fdfs/

重启nginx


nginx/sbin/nginx -c nginx/conf/nginx.conf -s reload

CSDN_码404:file: ini_file_reader.c, line: 1036, include file “http.conf” not exists, line: “#include http.conf”
https://www.code404.icu/1468.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值