免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2213 | 回复: 4
打印 上一主题 下一主题

[FastDFS] fastdfs和nginx整合后启动nginx报异常 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-08-21 19:04 |只看该作者 |倒序浏览
本帖最后由 luotoo 于 2012-08-21 19:05 编辑

fastdfs和nginx整合后,fastdfs正常,就是启动nginx时报异常,不知道是什么原因?请教高手解答,不胜感激!

异常如下:

nginx重启命令 /usr/local/nginx/sbin/nginx -s  reload

[2012-08-21 18:28:31] ERROR - file: ../common/sockopt.c, line: 1549, max_count: 4 < iterface count: 5
[2012-08-21 18:28:31] INFO - local_host_ip_count: 2,  127.0.0.1  192.168.8.100
[2012-08-21 18:28:31] INFO - fastdfs apache / nginx module v1.09, response_mode=redirect, base_path=/data/fdfs, path_count=1, connect_timeout=2, network_timeout=30, tracker_server_count=3, storage_server_port=23003, group_name=group3, if_alias_prefix=, local_host_ip_count=3, need_find_content_type=0, default_content_type=, anti_steal_token=0, token_ttl=0s, anti_steal_secret_key length=0, token_check_fail content_type=, token_check_fail buff length=0, storage_sync_file_max_delay=86400s

论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
2 [报告]
发表于 2012-08-21 22:38 |只看该作者
回复 1# luotoo

用最新版本就不会有这个问题了。
FastDFS v3.11和最新的扩展模块v1.10。

论坛徽章:
0
3 [报告]
发表于 2012-08-23 14:55 |只看该作者

fastdht日志出现错误

本帖最后由 luotoo 于 2012-08-23 14:58 编辑

谢谢happy_fish100的回复。

fastdfs和nginx整合错误已经按照你说的安装新版本解决掉了。

我在启动fastdht的时候也碰到了同样的问题,不知道是什么原因造成的?

[2012-08-23 14:30:24] INFO - FastDHT v1.20, base_path=/data/fdht, total group count=1, my group count=1, group server count=1, connect_timeout=5, network_timeout=60, port=11411, bind_addr=, max_connections=256, max_threads=32, max_pkg_size=64 KB, min_buff_size=64 KB, store_type=BDB, cache_size=128 MB, db_type=btree, db_prefix=db, page_size=4096, sync_db_time_base=00:00, sync_db_interval=86400s, db_dead_lock_detect_interval=1000ms, sync_wait_msec=100ms, allow_ip_count=-1, sync_log_buff_interval=10s, clear_expired_time_base=04:00, clear_expired_interval=86400s, write_to_binlog=1, sync_binlog_buff_interval=60s, compress_binlog_time_base=02:00, compress_binlog_interval=86400s, sync_stat_file_interval=300s, write_mark_file_freq=5000, thread_stack_size=1024 KB, if_alias_prefix=, store_sub_keys=0
[2012-08-23 14:30:24] ERROR - file: ../common/sockopt.c, line: 1549, max_count: 4 < iterface count: 5

fastdht的安装和启动都正常,我在查看日志的时候发现了这个ERROR - file: ../common/sockopt.c, line: 1549, max_count: 4 < iterface count: 5这个错误日志,请教如何解决?谢谢。




论坛徽章:
4
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:56:11IT运维版块每日发帖之星
日期:2016-08-11 06:20:00IT运维版块每日发帖之星
日期:2016-08-15 06:20:00
4 [报告]
发表于 2012-08-23 15:19 |只看该作者
回复 3# luotoo

FastDHT v1.21使用和FastDFS v3.11相同的公共文件(common目录下的文件),解决了这个问题。
你可以把FastDHT最新代码checkout出来。

论坛徽章:
0
5 [报告]
发表于 2012-08-23 15:59 |只看该作者
本帖最后由 luotoo 于 2012-08-23 17:09 编辑

我把fastdfs里面的common覆盖了fastdht里面的common目录,然后重新编译了一下,现在正常了,日志里面没有错误提示,非常感谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP