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

介绍


fastdfs-nginx-modulenginx启动后,文件无法访问报错 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

版权声明:本文为作者原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

原创文章,作者:老C,如若转载,请注明出处:https://www.code404.icu/1468.html

发表评论

登录后才能评论