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 [email protected]: nodedown
- [email protected]:
- 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
时间: 2024-10-12 21:44:25