centos7 rabbitmq-server-3.8.19手动rpm打包安装说明
2021/7/23 7:09:05
本文主要是介绍centos7 rabbitmq-server-3.8.19手动rpm打包安装说明,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
rabbitmq-server-3.8.19安装说明
由于我们公司客户是内网,不能用yum安装。所以要用rpm下载下来相关依赖包安装。
安装指南 参考官方文档:https://rabbitmq.com/install-rpm.html 安装版本和地址 1、elrang版本:23.0以上 2、RabbitMQ版本号:RabbitMQ 3.8.19 (1)Windows系统: https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.19/rabbitmq-server-3.8.19.exe (2)CentOs7.0以上系统: https://github-releases.githubusercontent.com/924551/523abc00-dd82-11eb-94fc-35d0ebe08227?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210714%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210714T074745Z&X-Amz-Expires=300&X-Amz-Signature=d3c964d154476717c58581cbd4d7ad404f18f562990952cacdf5c1747b99286a&X-Amz-SignedHeaders=host&actor_id=20737708&key_id=0&repo_id=924551&response-content-disposition=attachment%3B%20filename%3Drabbitmq-server-3.8.19-1.el7.noarch.rpm&response-content-type=application%2Foctet-stream
Centos7安装步骤
1.如果能连网,以下是download所有相关包的方法。
(1)查看yum中是否存在3.8.19版本:
yum --showduplicates list rabbitmq-server | expand
(2)Yum 将验证它安装的任何软件包的签名,导入签名密钥。
## primary RabbitMQ signing key rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc ## modern Erlang repository rpm --import https://packagecloud.io/rabbitmq/erlang/gpgkey ## RabbitMQ server repository rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
(3)添加yum的镜像地址,在/etc/yum.repos.d添加一个rabbitmq.repo,内容如下:
## primary RabbitMQ signing key rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc ## modern Erlang repository rpm --import https://packagecloud.io/rabbitmq/erlang/gpgkey ## RabbitMQ server repository rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey ``` (3)添加yum的镜像地址,在/etc/yum.repos.d添加一个rabbitmq.repo,内容如下: ``` # In /etc/yum.repos.d/rabbitmq.repo ## ## Zero dependency Erlang ## [rabbitmq_erlang] name=rabbitmq_erlang baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/$basearch repo_gpgcheck=1 gpgcheck=1 enabled=1 # PackageCloud's repository key and RabbitMQ package signing key gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 [rabbitmq_erlang-source] name=rabbitmq_erlang-source baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/SRPMS repo_gpgcheck=1 gpgcheck=0 enabled=1 gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 ## ## RabbitMQ server ## [rabbitmq_server] name=rabbitmq_server baseurl=https://packagecloud.io/rabbitmq/rabbitmq-server/el/7/$basearch repo_gpgcheck=1 gpgcheck=1 enabled=1 # PackageCloud's repository key and RabbitMQ package signing key gpgkey=https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 [rabbitmq_server-source] name=rabbitmq_server-source baseurl=https://packagecloud.io/rabbitmq/rabbitmq-server/el/7/SRPMS repo_gpgcheck=1 gpgcheck=0 enabled=1 gpgkey=https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300
(4)进入当前home目录 (快捷命令cd ~),并新建rpms目录
mkdir rpms
(5)下载socat、logrotate和rabbitmq-server安装包放在rpms目录
yum install -y --downloadonly socat --downloaddir=./rpms/ yum install -y --downloadonly logrotate --downloaddir=./rpms/ yum install -y --downloadonly rabbitmq-server --downloaddir=./rpms/
(6)安装rpms下面的所有rpm包
rpm -ivh ./rpms/*.rpm --force --nodeps
2.如果不能连网,就提前在有网的电脑上下载好上述的签名和rpms包安装!
Centos7开启管理界面和开机启动
1.开启管理界面 进入/usr/lib/rabbitmq/bin目录执行:
rabbitmq-plugins enable rabbitmq_management
2.开机启动 依然在bin目录执行:
chkconfig rabbitmq-server on
3.启动服务
service rabbitmq-server stop service rabbitmq-server start
4.打开端口 需要打开5672和15672两个端口
firewall-cmd --permanent --add-port=15672/tcp firewall-cmd --permanent --add-port=5672/tcp firewall-cmd reload //关闭selinux setsebool -P nis_enabled 1
5.设置外部访问管理界面(只在开发测试环境) 由于开发环境要远程访问管理界面,guest不能远程登录,需要添加一个管理员账号才能远程登录。 添加admin用户,密码admin。直接在命令行执行:
rabbitmqctl add_user admin admin
授权管理员权限。
rabbitmqctl set_user_tags admin administrator
现在可以远程访问了http://10.10.1.11:15672/登录admin账号就行。
这篇关于centos7 rabbitmq-server-3.8.19手动rpm打包安装说明的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-20获取apk的md5值有哪些方法?-icode9专业技术文章分享
- 2024-11-20xml报文没有传 IdentCode ,为什么正常解析没报错呢?-icode9专业技术文章分享
- 2024-11-20如何知道代码有没有进行 Schema 验证?-icode9专业技术文章分享
- 2024-11-20Mycat教程:新手快速入门指南
- 2024-11-20WebSocket入门:轻松掌握WebSocket基础
- 2024-11-19WebSocket入门指南:轻松搭建实时通信应用
- 2024-11-19Nacos安装资料详解:新手入门教程
- 2024-11-19Nacos安装资料:新手入门教程
- 2024-11-19升级 Gerrit 时有哪些注意事项?-icode9专业技术文章分享
- 2024-11-19pnpm是什么?-icode9专业技术文章分享