perler_lee 发表于 2014-12-10 12:01

我的存储节点启动nginx报错

我的nginx版本是1.6.2 fastdfs v5.05fastdfs-nginx-module v1.16 存储和跟踪启动没问题存储会连接跟踪服务器,但是启动存储服务器上的nginx时确报了下面的错误:
ngx_http_fastdfs_process_init pid=17609
ERROR - file: ini_file_reader.c, line: 315, include file "http.conf" not exists, line: "#include http.conf"
ERROR - file: /usr/local/src/fastdfs-nginx-module/src//common.c, line: 155, load conf file "/etc/fdfs/mod_fastdfs.conf" fail, ret code: 2
2014/12/10 11:52:07 17607#0: worker process 17609 exited with fatal code 2 and cannot be respawned

刚接触fastdfs 望大牛们多多指点哈:shock:

yjxtd 发表于 2014-12-25 09:49

你看下安装包的conf目录下,有几个配置文件,把http.conf,mime.types,拷贝到/etc/fdfs/下,http.conf里有 个配置应该是token验证的功能,如果你要打开,应该把路径配置正确

xucong0701 发表于 2015-01-07 09:11

回复 2# yjxtd


    我启动的时候也报LZ一样的错误,我的版本是nginx-1.7.8.tar.gz,在安装包的conf下面并没有看到你说的http.conf文件。

tftososon 发表于 2015-01-09 16:26

同上报错,在安装包的conf下面也没有看到http.conf。

tftososon 发表于 2015-01-09 16:53

之前报错,我直接将#给删了。但是上传成功返回的URL,访问不了。
解决办法:
根据2楼大牛的提示,
FIND -name http.conf
发现在FastDfs安装目录下面
CP过去,重启Nginx,可以实现下载了
谢谢2楼哥们!
页: [1]
查看完整版本: 我的存储节点启动nginx报错