免费注册 查看新帖 |

Chinaunix

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

[FastDFS] 关于FastDFS v4.07开机自启动问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-12-08 19:01 |只看该作者 |倒序浏览
1.系统为centos6.2,正常开机情况下,可以通过shell脚本启动tracker,storage,脚本如下
   /usr/local/bin/fdfs_trackerd /etc/fdfs/tracker.conf
  /usr/local/bin/fdfs_storage /etc/fdfs/storage.conf
2.将shell脚本加入开机启动项 /etc/rc.local中去,然后重启系统
   发现有tracker进程,没有storage进程
  但tracker会有错误日志,日志如下
  [2014-12-08 17:51:12] DEBUG - file: fast_task_queue.c, line: 196, max_connections: 256, min_buff_size: 8192, max_buff_size: 8192, block_size: 8552, arg_size: 24, max_data_size: 268435456, total_size: 2189312
[2014-12-08 17:51:12] DEBUG - file: fast_task_queue.c, line: 262, malloc task info as whole: 1, malloc loop count: 1
[2014-12-08 17:51:12] ERROR - file: tracker_service.c, line: 114, call pipe fail, errno: 24, error info: Too many open files
[2014-12-08 17:51:12] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:12] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:13] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:14] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:14] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:14] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
[2014-12-08 17:51:15] ERROR - file: tracker_service.c, line: 246, call write failed, errno: 22, error info: Invalid argument
  storage日志如下
[2014-12-08 17:50:18] CRIT - file: fdfs_storaged.c, line: 497, catch signal 15, program exiting...
[2014-12-08 17:51:12] ERROR - file: tracker_proto.c, line: 37, server: 192.168.1.128:13122, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2014-12-08 17:51:12] ERROR - file: tracker_proto.c, line: 154, tracker server: 192.168.1.128:13122, send data fail, errno: 104, error info: Connection reset by peer
[2014-12-08 17:51:13] ERROR - file: tracker_proto.c, line: 37, server: 192.168.1.128:13122, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2014-12-08 17:51:13] ERROR - file: tracker_proto.c, line: 154, tracker server: 192.168.1.128:13122, send data fail, errno: 104, error info: Connection reset by peer
[2014-12-08 17:51:14] ERROR - file: tracker_proto.c, line: 37, server: 192.168.1.128:13122, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2014-12-08 17:58:02] ERROR - file: tracker_proto.c, line: 37, server: 192.168.1.128:13122, recv data fail, errno: 107, error info: Transport endpoint is not connected
[2014-12-08 17:58:52] ERROR - file: tracker_proto.c, line: 37, server: 192.168.1.128:13122, recv data fail, errno: 107, error info: Transport endpoint is not connected
开机之后必须重启 tracker 才能启动 storage,请问如何排错啊





您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP