CentOS7之安装rabbitmq-server及卸载rpm包

1、卸载rpm包
    1.1 查询rpm包:

[root@bogon shared_docs]# yum install socat
[root@bogon shared_docs]# rpm -ivh rabbitmq-server-3.6.12-1.el6.noarch.rpm

//把包名相关的包都列出来  
 rpm -qa | grep 包名
//你想卸载的软件,后面是包名称,最后的版本号是不用打的
rpm -e 文件名

Demo:

[root@localhost shared_docs]# rpm -qa | grep rabbitmq-server
rabbitmq-server-3.7.4-1.el7.noarch
[root@localhost shared_docs]#  rpm -e rabbitmq-server

参考文章:
https://www.cnblogs.com/liaojie970/p/6138075.html
2、rabbitmq-server的安装

//erlang版本:5.10.4
[root@localhost ~]# erl -version
Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 5.10.4
//rabbitmq-server版本:rabbitmq-server-3.6.12-1.el6.noarch
//要配套奥,要不然会报错误

rbbitmq-server下载地址:
https://github.com/rabbitmq/rabbitmq-server/releases/tag/rabbitmq_v3_6_12
erlang下载安装:
yum install erlang
https://blog.zfanw.com/install-erlang-on-centos/
版本一定要对应!!!
CentOS7之安装rabbitmq-server及卸载rpm包_第1张图片
这是报的错误,解决方案就是版本要处理好,版本对应见上

[root@localhost ~]# systemctl start rabbitmq-server.service
Job for rabbitmq-server.service failed because the control process exited with error code. See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.
[root@localhost ~]# 

你可能感兴趣的:(Linux,运维)