?yum安装rabbitmq
- 查看安装环境
[[email protected] shell]# uname -a
Linux tsettiaoshi 2.6.32-696.el6.x86_64 #1 SMP Tue Mar 21 19:29:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux - 检查yum源
extras CentOS-6 Extras 35
updates CentOS-6 Updates 257
repolist: 19,509 - 安装rabbitmq
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
yum install rabbitmq-server-3.7.8-1.el6.noarch -y ####如果安装报错是yum源有问题
/etc/init.d/rabbitmq-server start ###启动MQ
rabbitmq-plugins enable rabbitmq_management #启动web页面
rabbitmqctl add_user admin 123456 #创建web页面的账户密码
rabbitmqctl set_user_tags admin administrator #设置管理员用户
原文地址:http://blog.51cto.com/14037953/2334775
时间: 2024-10-09 13:11:39