-
安装erlang
下载地址https://packages.erlang-solutions.com/erlang/rpm/centos/6/x86_64/esl-erlang_R16B03-6centos6_amd64.rpm
rpm -ivh esl-erlang_R16B03-6_centos_6_amd64.rpm
yum install socat -y -
安装rabbitmq server
下载地址:https://repo.huaweicloud.com/rabbitmq-server/v3.8.8/rabbitmq-server-3.8.8-1.el8.src.rpm
rpm -ivh rabbtitmq-server-3.8.8-1.el8.src.rpm
-
常用命令
-
添加开机启动RabbitMQ服务
chkconfig rabbitmq-server on
-
启动服务
systemctl start rabbitmq-server
-
查看服务状态
systemctl status rabbitmq-server
-
停止服务
systemctl stop rabbitmq-server
-
启用管理插件
rabbitmq-plugins enable rabbitmq_management
-
登录管理页面
# 防火墙开发ip firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.31.131" port protocol="tcp" port="1-65535" accept" # 开放端口 # firewall-cmd --zone=public --add-port=100-500/tcp --permanent # 重新加载防火墙设置 firewall-cmd --reload
管理页面链接:http://192.168.140.22:15672/
-
添加用户及设置权限
# 创建用户及密码 rabbitmqctl add_user admin 123 # 设置用户角色 rabbitmqctl set_user_tags admin administrator # 设置用户权限 set_permissions [-p <vhostpath>] <user> <conf> <write> <read> rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*" # 当前用户和角色 rabbitmqctl list_users
-
安装rabbitmq_delayed_message_exchange插件
# 进入到插件安装目录 cd /usr/lib/rabbitmq/lib/rabbitmq_server-3.8.8/plugins # 执行命令,使插件生效 rabbitmq-plugins enable rabbitmq_delayed_message_exchange
-
版权声明:本文为m0_67265464原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。