介绍
fastdfs-nginx-module 启动nginx 后 访问文件时报错 mod_fastdfs.conf", host “tracker” is invalid
ngx_http_fastdfs_process_init pid=69515
[2021-12-02 17:00:25] INFO - file: ini_file_reader.c, line: 1349, func: checkInitDynamicContentArray, init_pthread_lock
[2021-12-02 17:00:25] INFO - file: ini_file_reader.c, line: 1384, func: checkAllocDynamicContentArray, alloc count: 8
[2021-12-02 17:00:25] INFO - file: ini_file_reader.c, line: 1349, func: checkInitDynamicContentArray, init_pthread_lock
[2021-12-02 17:00:25] INFO - file: ini_file_reader.c, line: 1384, func: checkAllocDynamicContentArray, alloc count: 8
[2021-12-02 17:00:25] ERROR - file: client_func.c, line: 112, conf file "/data/fdfs/etc/fdfs/mod_fastdfs.conf", host "tracker" is invalid
[2021-12-02 17:00:25] ERROR - file: client_func.c, line: 112, conf file "/data/fdfs/etc/fdfs/mod_fastdfs.conf", host "tracker" is invalid
[2021-12-02 17:00:25] ERROR - file: client_func.c, line: 112, conf file "/data/fdfs/etc/fdfs/mod_fastdfs.conf", host "tracker" is invalid
[2021-12-02 17:00:25] ERROR - file: client_func.c, line: 112, conf file "/data/fdfs/etc/fdfs/mod_fastdfs.conf", host "tracker" is invalid
问题原因
原因就是 系统找不到tracker 对应的主机
查看 mod_fastdfs.conf 配置文件
vim /data/fdfs/etc/fdfs/mod_fastdfs.conf
tracker_server=tracker:22122 #把tracker 改成 tracker对应的IP地址就可以了
解决方法
- 把tracker 的改成对应的IP地址就可以说了
vim /data/fdfs/etc/fdfs/mod_fastdfs.conf
tracker_server=192.168.1.100:22122
- 在系统的/etc/hosts上添加配置
vim /et/hosts
192.168.1.100 tracker
CSDN_码404:fastdfs-nginx-module 中报错 mod_fastdfs.conf", host “tracker” is invalid
https://www.code404.icu/1471.html