首页 > 代码库 > CentOS7下源码包方式安装rabbitmq
CentOS7下源码包方式安装rabbitmq
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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。