http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm
http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.11/rabbitmq-server-3.6.11-1.el7.noarch.rpm
https://dl.bintray.com/rabbitmq/rabbitmq-server-rpm/rabbitmq-server-3.6.11-1.el7.noarch.rpm
rpm -ivh erlang-19.0.4-1.el7.centos.x86_64.rpm
rabbitmq-server-3.6.11-1.el7.noarch.rpm
在安装rabbitmq时提示依赖socat
yum install socat
实际安装后是在 /sbin 目录中
/sbin/service rabbitmq-server stop #关闭
/sbin/service rabbitmq-server start #启动
/sbin/service rabbitmq-server status #状态
rabbitmq-plugins enable rabbitmq_management
http://www.rabbitmq.com/management.html
Download rabbitmqadmin at: http://server-name:15672/cli/
./rabbitmqctl list_users
To use the web UI you will need to authenticate as a RabbitMQ user (on a fresh installation the user "guest" is created with password "guest").
guest登录不了
运行如下的命令,增加用户admin,密码admin
[root@localhost sbin]# ./rabbitmqctl add_user admin admin
Creating user "admin" ...
...done.
[root@localhost sbin]# ./rabbitmqctl set_user_tags admin administrator
Setting tags for user "admin" to [administraotr] ...
...done.
[root@localhost sbin]# ./rabbitmqctl list_users
Listing users ...
admin [administrator]
guest [administrator]
...done.
端口: {listeners,[{clustering,25672,"::"},{amqp,5672,"::"},{http,15672,"::"}]},