十二RabbitMQ 报错汇总

Posted Daniel521-Spark

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了十二RabbitMQ 报错汇总相关的知识,希望对你有一定的参考价值。

🌻🌻 目录

一、报版本过低问题

问题:

error: Failed dependencies:
libcrypto.so.1.1()(64bit) is needed by erlang-25.1.2-1.el8.x86_64
libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) is needed by erlang-25.1.2-1.el8.x86_64


解决方式一:

  • 在该命令后面加上 --nodeps --force
  • 该命令的作用: 不再分析包之间的依赖关系而直接安装
rpm -ivh erlang-25.1.2-1.el8.x86_64.rpm  --nodeps --force

解决方式二:

说明gblic 版本太低。我们可以查看当前机器的gblic 版本

strings /lib64/libc.so.6 | grep GLIBC

当前最高版本2.17,需要*.所以需要升级glibc

  1. 使用yum更新安装依赖
sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make -y

  1. 下载rpm包
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/nscd-2.17-55.el6.x86_64.rpm &

又出现一个问题:

-bash: wget: command not found

CentOS系统:

yum install wget -y

Debian/Ubuntu系统,需要执行以下命令:

apt-get install -y wget

再次执行上面的rpm包

wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-utils-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-static-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-common-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-devel-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/glibc-headers-2.17-55.el6.x86_64.rpm &
wget http://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6/epel-6-x86_64/glibc-2.17-55.fc20/nscd-2.17-55.el6.x86_64.rpm &
  1. 安装rpm包
sudo rpm -Uvh *-2.17-55.el6.x86_64.rpm --force --nodeps
  1. 安装完毕后再查看glibc版本,发现glibc版本已经到2.17了
strings /lib64/libc.so.6 | grep GLIBC

二、wget: unable to resolve host address解决方法

利用wget下载东西时,比如输入指令wget www.baidu.com
提示报错
“wget: unable to resolve host address …”
wget:无法解析主机地址。这就能看出是DNS解析的问题

解决办法:修改/etc/resolv.conf文件,添加nameserver即可,下面给出两个通用的谷歌域名服务器,如果有自己解析服务器也可以换成自己的

vi /etc/resolv.conf
nameserver 8.8.8.8 	 #google域名服务器
nameserver 8.8.4.4 	 #google域名服务器

或者还原之前的

以上是关于十二RabbitMQ 报错汇总的主要内容,如果未能解决你的问题,请参考以下文章

python成长之路第十二篇:RabbitMQ入门

SpringBoot | 第十二章:RabbitMQ的集成和使用

SpringBoot(二十二)集成RabbitMQ---MQ实战演练

spring boot实战(第十二篇)整合RabbitMQ

第十二章:汇总数据

RabbitMQ消费方式汇总