@RabbitMQ
RabbitMQ安装
方式1: 离线安装 下载离线安装包文件 https://download.csdn.net/download/weixin_38305440/12265906 上传离线安装包 rabbitmq-install 目录上传到 /root 切换到rabbitmq-install目录 cd rabbitmq-install 安装 rpm -ivh *.rpm
方式2:在线安装 以下内容来自 RabbitMQ 官方手册 rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
–centos7 用这个 cat < /etc/yum.repos.d/rabbitmq.repo [bintray-rabbitmq-server] name=bintray-rabbitmq-rpm baseurl=https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.8.x/el/7/ gpgcheck=0 repo_gpgcheck=0 enabled=1 EOF
–centos6 用这个 cat < /etc/yum.repos.d/rabbitmq.repo [bintray-rabbitmq-server] name=bintray-rabbitmq-rpm baseurl=https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.8.x/el/6/ gpgcheck=0 repo_gpgcheck=0 enabled=1 EOF
yum makecache
yum install socat
wget https://github.com/rabbitmq/erlang-rpm/releases/download/v21.3.8.12/erlang-21.3.8.12-1.el7.x86_64.rpm rpm -ivh erlang-21.3.8.12-1.el7.x86_64.rpm --force --nodeps
yum install rabbitmq-server
启动rabbitmq服务器 1.设置服务,开机自动启动 systemctl enable rabbitmq-server 2.启动服务 systemctl start rabbitmq-server
rabbitmq管理界面 启用管理界面 1.开启管理界面插件 rabbitmq-plugins enable rabbitmq_management
2.防火墙打开 15672 管理端口 firewall-cmd --zone=public --add-port=15672/tcp --permanent firewall-cmd --reload
重启RabbitMQ服务 systemctl restart rabbitmq-server
访问 访问服务器的15672端口,例如: http://192.168.64.140:15672
|