
RabbitMq
小小坏蛋
每天进步一点点
展开
-
RabbitMQ Centos7 安装以及使用
1.下载官网最新版wget http://erlang.org/download/otp_src_21.1.tar.gz2.解压文件进入文件夹进行预安装 解压文件tar -zxvf otp_src_21.1.tar.gz进入文件夹cd otp_src_21.1 配置安装目录./configure --prefix = / opt / erlang若出现以下错误信息安装nc...原创 2018-11-29 12:07:16 · 205 阅读 · 0 评论 -
RabbitMQ消息安全(事物与发送方确认)机制
1.在使用RabbitMQde的时候,可以通过消息持久化(交换机持久化,队列持久化,消息持久化)操作来解决因服务器异常崩溃而导致的消息丢失,初次之外,我们还遇到一个问题,当生产者将消息发送出去之后,消息到底有没有到达服务器呢?如果特殊配置,默认情况下是不会返回任何消息给生产者的,也就是说生产者不知道该消息是否正确的到达服务器,如果消息在到达服务器之前丢失,持久化操作也解决不了消息丢失的问题,...原创 2018-11-30 16:03:12 · 727 阅读 · 0 评论 -
RabbitMQ 生产消费demo
生产者:import com.rabbitmq.client.Channel;import com.rabbitmq.client.Connection;import com.rabbitmq.client.ConnectionFactory;import com.rabbitmq.client.MessageProperties;import org.springframework....原创 2018-11-27 20:13:12 · 654 阅读 · 0 评论 -
rabbitmq 406 错误
1.运行RabbitMq报406Caused by: com.rabbitmq.client.ShutdownSignalException: channel error; protocol method: #method<channel.close>(reply-code=406, reply-text=PRECONDITION_FAILED - inequivalent arg...原创 2018-11-28 18:05:15 · 1275 阅读 · 0 评论 -
RabbitMq 实现消息过期时间处理
的RabbitMQ 生产者与消费者具体案例请参照我前面写的案例,本章不做详细介绍,只写局部细节详见 https://blog.youkuaiyun.com/u010260737/article/details/84570778实现方式一,public static final Boolean durable = true;//设置是否持久化public static final Boole...原创 2018-11-28 19:29:07 · 7915 阅读 · 0 评论