码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS7下源码包方式安装rabbitmq

时间:2016-11-25 16:48:12      阅读:1120      评论:0      收藏:0      [点我收藏+]

标签:style   ide   3.5   exit   comm   enable   服务   state   regexp   

1.先安装erlang http://www.cnblogs.com/justphp/p/6093880.html
2.下载rabbitmq rpm包:
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.5.0/rabbitmq-server-3.5.0-1.noarch.rpm
3.安装rabbitmq
rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc
rpm -ivh [rabbitmq-server-3.5.0-1.noarch.rpm
4.启动rabbitmq服务
service rabbitmq-server restart

 

查看状态 rabbitmqctl status 可能报错:
  • Error: unable to connect to node rabbit@localhost: nodedown
  • rabbit@localhost:
  • connected to epmd (port 4369) on localhost
  • epmd reports: node ‘rabbit‘ not running at all no other nodes on localhost
  • suggestion: start the node
解决办法:
rabbitmq-server remove
rabbitmq-server install

 

启动失败 service rabbitmq-server start 报错
  • 11月 25 23:06:58 localhost.localdomain systemd[1]: rabbitmq-server.service: control process exited, code=exited status=1
  • 11月 25 23:06:58 localhost.localdomain systemd[1]: Failed to start LSB: Enable AMQP service provided by RabbitMQ broker.
  • 11月 25 23:06:58 localhost.localdomain systemd[1]: Unit rabbitmq-server.service entered failed state.
  • 11月 25 23:06:58 localhost.localdomain systemd[1]: rabbitmq-server.service failed.
解决办法:
ps -aux|grep rabbitmq   //杀掉除grep外的pid

CentOS7下源码包方式安装rabbitmq

标签:style   ide   3.5   exit   comm   enable   服务   state   regexp   

原文地址:http://www.cnblogs.com/justphp/p/6101736.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!