rabbitmq
rpm -ivh erlang-23.0.2-1.el7.x86_64.rpm
rpm -ivh rabbitmq-server-3.8.4-1.el7.noarch.rpm
查看安装后的启动服务的状态:systemctl list-unit-files | grep rabbitmq-server
rabbitmq-server.service disabled(启动服务此服务部启动)
安装后的路径:cd /usr/lib/rabbitmq/bin
查看软链接的去处:ll -->rabbitmq-server -> ../lib/rabbitmq_server-3.8.5/sbin/rabbitmq-server(在上层目录lib下的sbin中)
4、查看插件列表:rabbitmq-plugins list
启动rabbit的插件:rabbitmq-plugins enable rabbitmq_management
rabbitmq-server #后台启动 rabbitmq-server -detached
查看rabbit用户列表:rabbitmqctl list_users
6、添加rabbit用户:rabbitmqctl add_user root 123456
7、给用户设置标签:rabbitmqctl set_user_tags root administrator
8、给用户虚拟主机("/")访问的权限:rabbitmqctl set_permissions --vhost / root ".*" ".*" ".*"
查看持久化消息
cd /var/lib/rabbitmq/mnesia/rabbit@localhost/msg_stores/vhosts
cd /var/lib/rabbitmq/mnesia/rabbit@localhost/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/queues/NJTLNCM3SHLLBXINIFLBRNC7
vi 0.idx