目录
RabbitMQ官方地址:Messaging that just works — RabbitMQ
socat:http://mirror.centos.org/centos/7/os/x86_64/Packages/socat-1.7.3.2-2.el7.x86_64.rpm[这里是图片001]http://mirror.centos.org/centos/7/os/x86_64/Packages/socat-1.7.3.2-2.el7.x86_64.rpm
erlang:Erlang and Elixir Packages Download - Erlang Solutions[这里是图片002]https://www.erlang-solutions.com/downloads/
版本匹配说明:RabbitMQ Erlang Version Requirements — RabbitMQ[这里是图片004]https://www.rabbitmq.com/which-erlang.html
yum install build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ kernel-devel m4 ncurses-devel tk tc xz
rpm -ivh esl-erlang_24.0-1_centos_7_amd64.rpm
rpm -ivh socat-1.7.3.2-2.el7.x86_64.rpm
rpm -ivh rabbitmq-server-3.8.19-1.el7.noarch.rpm
service rabbitmq-server start
service rabbitmq-server stop
service rabbitmq-server restart
rabbitmq-plugins enable rabbitmq_management
systemctl stop firewalld.service
systemctl disable firewalld.service
firewall-cmd --state
默认用户密码:guest,只能在本地登录
创建账户和密码
rabbitmqctl add_user admin 1513
设置用户权限
rabbitmqctl set_user_tags admin administrator
设置用户角色
rabbitmqctl set_permissions -p “/” admin “." ".” “.*”
查看当前所有账户
rabbitmqctl list_user
添加自启动服务
chkconfig rabbitmq-server on