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