fastdfs-nginx-module 中报错 mod_fastdfs.conf”, host “tracker” is invalid

fastdfs
fastdfs

介绍


fastdfs-nginx-module 启动nginx 后 访问文件时报错 mod_fastdfs.conf”, host “trackeris 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地址就可以了

解决方法


  1. 把tracker 的改成对应的IP地址就可以说了
vim /data/fdfs/etc/fdfs/mod_fastdfs.conf 
tracker_server=192.168.1.100:22122
  1. 在系统的/etc/hosts上添加配置
vim /et/hosts
192.168.1.100 tracker

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

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

发表评论

登录后才能评论