免费注册 查看新帖 |

ChinaUnix.net

  平台 论坛 博客 文库 频道自动化运维 虚拟化 储存备份 C/C++ PHP MySQL 嵌入式 Linux系统
最近访问板块 发新帖
查看: 2054 | 回复: 0

[其他] 用supervisor启动rabbitmq启动不成功的问题 [复制链接]

论坛徽章:
0
发表于 2018-10-23 17:13 |显示全部楼层
本帖最后由 ighack 于 2018-10-23 17:16 编辑

我使用supervisor监控rabbitmq但总是不成功
我的配置文件为
  1. [program:rabbitmq]
  2. command=/mid/rabbitmq_server-3.7.8/sbin/rabbitmq-server  ;常驻后台的命令
  3. autostart=true                           ;是否随supervisor启动
  4. autorestart=true                         ;是否在挂了之后重启,意外关闭后会重启,比如kill掉!

  5. startretries=3                           ;启动尝试次数
  6. user=jzyctest                            ;用哪个用户启动
  7. ;stderr_logfile=/tmp/tail1.err.log        ;标准输出的位置
  8. ;stdout_logfile=/tmp/tail1.out.log        ;标准错误输出的位置
复制代码
但总启动不成功
supervisord.log报

  1. 2018-10-23 16:50:02,297 INFO exited: rabbitmq (exit status 127; not expected)
  2. 2018-10-23 16:50:03,260 ERRO 10.2.65.96:23733 - - [23/Oct/2018:08:50:03 +0800] "GET /?message=ERROR%3A%20Process%20rabbitmq%3A%20spawn%20error HTTP/1.1" 200 3534
  3. 2018-10-23 16:50:04,948 INFO spawned: 'rabbitmq' with pid 36204
  4. 2018-10-23 16:50:05,092 INFO exited: rabbitmq (exit status 127; not expected)
  5. 2018-10-23 16:50:07,016 ERRO 10.2.65.96:23733 - - [23/Oct/2018:08:50:07 +0800] "GET /?message=ERROR%3A%20Process%20rabbitmq%3A%20spawn%20error HTTP/1.1" 200 3534
  6. 2018-10-23 16:50:08,271 ERRO 10.2.65.96:23733 - - [23/Oct/2018:08:50:08 +0800] "GET /?message=ERROR%3A%20Process%20rabbitmq%3A%20spawn%20error HTTP/1.1" 200 3534
  7. 2018-10-23 16:50:08,274 INFO spawned: 'rabbitmq' with pid 36314
  8. 2018-10-23 16:50:08,424 INFO exited: rabbitmq (exit status 127; not expected)
  9. 2018-10-23 16:50:09,345 ERRO 10.2.65.96:23733 - - [23/Oct/2018:08:50:09 +0800] "GET /?message=ERROR%3A%20Process%20rabbitmq%3A%20spawn%20error HTTP/1.1" 200 3534
  10. 2018-10-23 16:50:09,346 INFO gave up: rabbitmq entered FATAL state, too many start retries too quickly
  11. 2018-10-23 16:50:11,617 ERRO 10.2.65.96:23733 - - [23/Oct/2018:08:50:11 +0800] "GET /?message=ERROR%3A%20Process%20rabbitmq%3A%20spawn%20error HTTP/1.1" 200 3567
  12. 2018-10-23 16:50:13,810 ERRO 10.2.65.96:23733 - - [23/Oct/2018:08:50:13 +0800] "GET /?message=ERROR%3A%20Process%20rabbitmq%3A%20spawn%20error HTTP/1.1" 200 3567
  13. 2018-10-23 16:50:14,861 ERRO 10.2.65.96:23733 - - [23/Oct/2018:08:50:14 +0800] "GET /?message=ERROR%3A%20Process%20rabbitmq%3A%20spawn%20error HTTP/1.1" 200 3567
  14. 2018-10-23 16:54:54,133 INFO spawned: 'rabbitmq' with pid 38057
  15. 2018-10-23 16:54:54,283 INFO exited: rabbitmq (exit status 127; not expected)
  16. 2018-10-23 16:54:55,287 INFO spawned: 'rabbitmq' with pid 38167
  17. 2018-10-23 16:54:55,437 INFO exited: rabbitmq (exit status 127; not expected)
  18. 2018-10-23 16:54:56,474 ERRO 10.2.65.96:23862 - - [23/Oct/2018:08:54:56 +0800] "GET /?message=ERROR%3A%20Process%20rabbitmq%3A%20spawn%20error HTTP/1.1" 200 3534
  19. 2018-10-23 16:54:57,479 INFO spawned: 'rabbitmq' with pid 38273
  20. 2018-10-23 16:54:57,627 INFO exited: rabbitmq (exit status 127; not expected)
  21. 2018-10-23 16:55:00,634 INFO spawned: 'rabbitmq' with pid 38386
  22. 2018-10-23 16:55:00,784 INFO exited: rabbitmq (exit status 127; not expected)
  23. 2018-10-23 16:55:01,785 INFO gave up: rabbitmq entered FATAL state, too many start retries too quickly
  24. 2018-10-23 16:59:43,388 INFO spawned: 'rabbitmq' with pid 39576
  25. 2018-10-23 16:59:43,538 INFO exited: rabbitmq (exit status 127; not expected)
  26. 2018-10-23 16:59:44,542 INFO spawned: 'rabbitmq' with pid 39681
  27. 2018-10-23 16:59:44,692 INFO exited: rabbitmq (exit status 127; not expected)
  28. 2018-10-23 16:59:45,737 ERRO 10.2.65.96:23950 - - [23/Oct/2018:08:59:45 +0800] "GET /?message=ERROR%3A%20Process%20rabbitmq%3A%20spawn%20error HTTP/1.1" 200 3534
  29. 2018-10-23 16:59:46,742 INFO spawned: 'rabbitmq' with pid 39794
  30. 2018-10-23 16:59:46,891 INFO exited: rabbitmq (exit status 127; not expected)
  31. 2018-10-23 16:59:47,980 ERRO 10.2.65.96:23950 - - [23/Oct/2018:08:59:47 +0800] "GET /?message=ERROR%3A%20Process%20rabbitmq%3A%20spawn%20error HTTP/1.1" 200 3534
  32. 2018-10-23 16:59:50,326 INFO spawned: 'rabbitmq' with pid 39914
  33. 2018-10-23 16:59:50,475 INFO exited: rabbitmq (exit status 127; not expected)
  34. 2018-10-23 16:59:51,057 ERRO 10.2.65.96:23950 - - [23/Oct/2018:08:59:51 +0800] "GET /?message=ERROR%3A%20Process%20rabbitmq%3A%20spawn%20error HTTP/1.1" 200 3534
  35. 2018-10-23 16:59:51,058 INFO gave up: rabbitmq entered FATAL state, too many start retries too quickly
复制代码
/mid/rabbitmq_server-3.7.8/sbin/rabbitmq-server
这样直接启动是没有问题的

而且我配置kafka是可以成功的


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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP