RabbitMQ消息队列安装和配置以及推送消息

本文详细介绍了如何在Windows环境下安装配置RabbitMQ消息队列服务,并提供了使用.NET开发包EasyNetQ进行消息发布的示例代码。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考文献:http://www.cnblogs.com/ok123/p/3951884.html

RabbitMQ 是用erlang写的,先要下载erlang解释器并配置系统运行环境,erlang下载地址:http://www.erlang.org/download.html


下载完成安装即可,建议不要安装到系统盘符,还有,记得要进行环境配置。

安装完成以后,安全rabbitmq,windows安装程序下载地址:http://www.rabbitmq.com/install-windows.html

注意看此页面下面的相关介绍,对于rabbitmq安装完以后的服务启动和相关配置,下面只摘录小部分:

Run RabbitMQ Service

Customise RabbitMQ Environment Variables

The service will run fine using its default settings. You may want to customise the RabbitMQ environment or edit configuration.

Run RabbitMQ

The RabbitMQ service starts automatically. You can stop/reinstall/start the RabbitMQ service from the Start Menu.

Manage the Service

You can find links to RabbitMQ directories in the Start Menu.

There is also a link to a command prompt window that will start in the sbin dir, in the Start Menu. This is the most convenient way to run the various command line tools.

Windows-specific Issues

We aim to make RabbitMQ a first-class citizen on Windows. However, sometimes there are circumstances beyond our control. Please consult the Windows-specific Issues page.


RabbitMQ的.NET开发包EasyNetQ,开源地址:https://github.com/EasyNetQ/EasyNetQ

示例代码:

var bus = RabbitHutch.CreateRabbitBus("localhost");
var message = new MyMessage {Text = "Hello!"};
bus.Publish(message);
相关AIP请参阅: See the  documentation .

相关资料供各位道友一起学习:

http://www.cnblogs.com/shanyou/archive/2012/10/27/2742979.html

http://zzk.cnblogs.com/s?t=b&w=EasyNetQ

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值