环境:rocky-liunx
安装Rabbitmq所需要的的依赖
yum install -y epel-release gcc-c++ unixODBC openssl-devel ncurses-devel
从官网执行所需要的的erlang环境
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
安装最新版erlang
yum install erlang
安装提前下载好的rabbitmq的依赖包
yum install rabbitmq-server-3.7.10-1.el7.noarch.rpm
具体官网如下:
# rabbitmq 和erlang兼容版本
https://www.rabbitmq.com/which-erlang.html
# erlang 版本选择
https://packagecloud.io/rabbitmq/erlang
# rabbitmq 版本选择
https://www.rabbitmq.com/news.html
启动Rabbitmq
systemctl daemon-reload
systemctl start rabbitmq-server
systemctl enable rabbitmq-server
查看图形化界面端口是否启动
如果没有启动可以使用
rabbitmq-plugins enable rabbitmq_management
如果报错则进行本地解析
vim /etc/hosts
创建用户(权限)
rabbitmqctl add_user user_name 123456
rabbitmqctl set_user_tags nuser_name administrator
rabbitmqctl list_users 查看user列表
rabbitmqctl set_permissions -p "/" user_name ".*" ".*" ".*"