安装rabbitMQ

安装rabbitMQ

linux安装rabbitMQ

centos7下 需要先安装JDK

  1. 安装Erlang 需对应版本

  2. 安装对应版本的rabbitMQ

参考:CentOS7安装RabbitMQ简单实用教程_普通网友的博客-CSDN博客

启动

复制代码
systemctl start rabbitmq-server

出现的问题

启动失败

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.

解决办法1 : 没用

/var/lib/rabbitmq/mnesia 目录下存在rabbit@localhost.pid、rabbit@localhost、rabbit@localhost-plugins-expand,删除这3项后,再使用systemctl start rabbitmq-server启动,发现不报错了。

复制代码
rm -rf * rabbit@master.pid
删除该文件夹下所有文件 -rf 不询问

都不如一次重启 解决全部问题

使用

RabbitMQ Tutorials --- RabbitMQ

找maven Maven Repository: Search/Browse/Explore (mvnrepository.com)

搜amqp-client

xml 复制代码
      <!-- https://mvnrepository.com/artifact/com.rabbitmq/amqp-client -->
        <dependency>
            <groupId>com.rabbitmq</groupId>
            <artifactId>amqp-client</artifactId>
            <version>5.6.0</version>
        </dependency>
  • Hello world

  • Work Queues

  • Publish/Subscribe

  • Routing

  • Topics

地址:eminentLuo/RabbitMQ-use (github.com)

上传项目

  1. github 新建仓库

  2. 设置ssh

  3. git clone 仓库地址

  4. push

Git的使用--如何将本地项目上传到Github(三种简单、方便的方法)(二)(详解)_github上传本地项目_潇潇说测试的博客-CSDN博客

上传项目上github出现的问题

复制代码
error: failed to push some refs to

解决冲突:

复制代码
git pull --rebase origin master

git push
相关推荐
掘金-我是哪吒2 分钟前
分布式微服务系统架构第156集:JavaPlus技术文档平台日更-Java线程池使用指南
java·分布式·微服务·云原生·架构
亲爱的非洲野猪28 分钟前
Kafka消息积压的多维度解决方案:超越简单扩容的完整策略
java·分布式·中间件·kafka
活跃家族36 分钟前
分布式压测
分布式
前端世界2 小时前
HarmonyOS开发实战:鸿蒙分布式生态构建与多设备协同发布全流程详解
分布式·华为·harmonyos
DavidSoCool3 小时前
RabbitMQ使用topic Exchange实现微服务分组订阅
分布式·微服务·rabbitmq
掘金-我是哪吒4 小时前
分布式微服务系统架构第158集:JavaPlus技术文档平台日更-JVM基础知识
jvm·分布式·微服务·架构·系统架构
东窗西篱梦4 小时前
Redis集群部署指南:高可用与分布式实践
数据库·redis·分布式
Acrel_Fanny4 小时前
Acrel-1000系列分布式光伏监控系统在湖北荆门一马光彩大市场屋顶光伏发电项目中应用
分布式
xufwind5 小时前
spark standlone 集群离线安装
大数据·分布式·spark
半新半旧6 小时前
Redis集群和 zookeeper 实现分布式锁的优势和劣势
redis·分布式·zookeeper