赞
踩
最近用到了消息队列,经横向对比选择了RabbitMQ,现记录一下部署过程。环境Ubuntu18 + Erlang21.2.6 + RabbitMQ3.7.8
由于RabbitMQ是用erlang开发的,所以我们要先安装erlang
sudo apt-get install erlang-nox
更新源
sudo apt-get update
安装
sudo apt-get install rabbitmq-server
自此,RabbitMQ安装完毕并已启动,就这么简单
默认端口=5672
默认账号=guest,密码=guest
默认虚拟主机=/
3.1 启动
systemctl start rabbitmq-server
3.2 停止
systemctl stop rabbitmq-server
3.3 重启
systemctl restart rabbitmq-server
3.4 查看状态
sudo rabbitmqctl status
sudo rabbitmq-plugins enable rabbitmq_management
此步骤完成后,即可登录管理后台http://localhost:15672,默认账号guest密码guest
rabbitmq-plugins enable rabbitmq_mqtt
rabbitmq-plugins enable rabbitmq_web_mqtt
1).下载延迟插件:rabbitmq_delayed_message_exchange
http://www.rabbitmq.com/community-plugins.html
2).将插件放到文件目录下:
/usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/plugins
3).启用插件
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。