安装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
相关推荐
ZHE|张恒1 小时前
Docker 安装 RabbitMQ
docker·rabbitmq
猫林老师2 小时前
HarmonyOS线程模型与性能优化实战
数据库·分布式·harmonyos
在未来等你6 小时前
Elasticsearch面试精讲 Day 26:集群部署与配置最佳实践
大数据·分布式·elasticsearch·搜索引擎·面试
勤源科技7 小时前
分布式链路追踪中的上下文传播与一致性维护技术
分布式
互联网工匠7 小时前
分布式操作的一致性方案
分布式·架构
熊猫钓鱼>_>7 小时前
【案例实战】鸿蒙分布式智能办公应用的架构设计与性能优化
分布式·华为·harmonyos
没有bug.的程序员10 小时前
金融支付分布式架构实战:从理论到生产级实现
java·分布式·微服务·金融·架构·分布式调度系统
在未来等你10 小时前
Elasticsearch面试精讲 Day 25:Elasticsearch SQL与数据分析
大数据·分布式·elasticsearch·搜索引擎·面试
有一个好名字13 小时前
万字 Apache ShardingSphere 完全指南:从分库分表到分布式数据库生态
数据库·分布式·apache
Aurora_eye13 小时前
记录之Ubuntu22.4虚拟机及hadoop为分布式安装
大数据·hadoop·分布式