CentOS 6.7 安装 RabbitMQ
1、下载安装包
2、安装 Erlang
yum localinstall -y erlang-19.0.4-1.el6.x86_64.rpm
yum localinstall -y esl-erlang-compat-18.1-1.noarch.rpm
3、安装socat
yum install scout
4、安装rabbitmq
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.15/rabbitmq-server-3.6.15-1.el6.noarch.rpm
rpm -ivh rabbitmq-server-3.6.15-1.el6.noarch.rpm
5、启动
配置host:
先看下自己的主机名:hostname,我的主机名是:shortmv
先修改一下 host 文件:vim /etc/hosts,添加一行:127.0.0.1 shortmv
启动命令:
service rabbitmq-server start
重启 RabbitMQ 服务:
service rabbitmq-server restart
5、rabbitmq配置
从3.3.1版本以后,不能通过guest/guest访问了。
a、创建用户
rabbitmqctl add_user admin admin123
b、设置tags
rabbitmqctl set_user_tags admin administrator
c、设置权限
rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*”
eg:
rabbitmqctl add_user test test
rabbitmqctl set_user_tags test administrator
rabbitmqctl set_permissions -p / test ".*" ".*" ".*"
6、配置RabbitMQ web管理插件
rabbitmq-plugins enable rabbitmq_management
7、测试
参考地址:
相关推荐
NVEFLY 2020-07-04
OnMyHeart 2020-06-06
87447007 2020-05-16
chenpro 2020-08-09
liym 2020-06-21
天空windy 2020-06-03
OnMyHeart 2020-05-09
NVEFLY 2020-04-17
M守护神 2020-03-28
大史哥哥 2020-03-07
wbingyang 2020-02-27
liym 2020-02-22
zhoucheng0 2020-02-19
wbingyang 2020-02-14
OnMyHeart 2020-01-14
OnMyHeart 2020-01-08
大史哥哥 2019-12-31
wbingyang 2019-12-31