centos 7 系统上面安装rabbitmq
程序员文章站
2024-03-09 12:13:35
...
快速安装
———————————centos 7———————安装流程——————————————————>>>>
安装依赖包,有可以不用装
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
yum -y install ncurses-devel
# 找到mq对于的 Erlang版本 地址: https://github.com/rabbitmq/erlang-rpm
#vim /etc/yum.repos.d/rabbitmq-erlang.repo
[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1
#上步骤后,安装MQ时会自动去安装erlang的版本
#MQ下载安装,MQ版本地址 https://www.rabbitmq.com/news.html
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.11/rabbitmq-server-3.7.11-1.el7.noarch.rpm
yum -y install rabbitmq-server-3.7.11-1.el7.noarch.rpm
{转}另一安装教程: https://blog.csdn.net/qq_36194413/article/details/85165382?tdsourcetag=s_pcqq_aiomsg
rabbitmq 相关命令:
- 启动RabbitMQ服务
service rabbitmq-server start
- 状态查看
rabbitmqctl status
- 启用插件,web管理页面
rabbitmq-plugins enable rabbitmq_management
- 重启服务
service rabbitmq-server restart
- 添加帐号:name 密码:passwd
rabbitmqctl add_user name passwd
- 赋予其administrator角色
rabbitmqctl set_user_tags name administrator
- 设置权限
rabbitmqctl set_permissions -p / name ".*" ".*" ".*"
相关配置文件设置
待整理
上一篇: Inno setup制作程序安装包
下一篇: MySQL8.0.14安装