rabbitmq 使用
来源:互联网 发布:centos7网络配置 rules 编辑:程序博客网 时间:2024/04/29 06:59
RabbitMQ 是由 LShift 提供的一个 Advanced Message Queuing Protocol (AMQP) 的开源实现,由以高性能、健壮以及可伸缩性出名的 Erlang 写成,因此也是继承了这些优点。
AMQP 里主要要说两个组件:Exchange 和 Queue (在 AMQP 1.0 里还会有变动),如下图所示,绿色的 X 就是 Exchange ,红色的是 Queue ,这两者都在 Server 端,又称作 Broker ,这部分是 RabbitMQ 实现的,而蓝色的则是客户端,通常有 Producer 和 Consumer 两种类型:
pika 是 rabbitmq的 python 客户端。
http://stackoverflow.com/questions/4544744/whats-the-difference-between-celery-and-rabbitmq
Celery is a distributed task queue, which means the only thing that it should do is dispatch tasks/jobs to others servers and get the result back. But, how do servers communicate with each other, and how do they know what job they should perform? By a custom protocol? By old-databases?
Celery, by default, uses AMQP to handle that communication. If you want, you can use good-old-databases.
启动:sudo rabbitmq-server start
sudo rabbitmqctl stop
sudo rabbitmqctl status
sudo rabbitmqctl list_queues
--------------------------------------------------------------------
Rabbitmq is set to start automatically after it's installed. I don't think it is configured run with the service
command.
To see the status of rabbitmq
sudo rabbitmqctl status
To stop the rabbitmq
sudo rabbitmqctl stop
(Try the status command again to see that it's stopped). To start it again, the recommended method is
sudo invoke-rc.d rabbitmq-server start
These all work with the vanilla ubuntu install using apt-get
Still not working?
If you've tried unsuccessfully to start or restart rabbitmq, check to see how many processes are running.
ps -ef | grep rabbit
There should be 5 processes running as the user rabbitmq. If you have more, particularly if they're running as other users (such as root, or your own user) you should stop these processes.
The cleanest way is probably to reboot your machine.
- 使用rabbitMQ
- rabbitmq 使用
- RabbitMQ使用
- RabbitMQ使用
- rabbitmq使用
- rabbitmq使用
- rabbitMq使用
- rabbitmq使用
- rabbitmq第三篇:rabbitmq使用及参数设置
- RabbitMQ学习系列 : C# 如何使用 RabbitMQ
- rabbitmq 管理界面-Rabbitmq Trace的使用
- Spring集成RabbitMQ-使用RabbitMQ更方便
- Spring集成RabbitMQ-使用RabbitMQ更方便
- RabbitMQ的使用
- rabbitmq的命令使用
- RabbitMQ使用笔记
- RabbitMQ 使用笔记
- RabbitMQ使用总结
- Maven+eclipse工程中Maven Dependencies 文件夹丢失问题
- 中国用户使用代理软件的分析
- UML九种图之对象图
- 使用Eclipse的maven构建一个web项目
- java.lang.RuntimeException: Unable to instantiate activity ComponentInfo异常解决
- rabbitmq 使用
- lua 点跟冒号的区别
- LTE的安全研究
- UVA 1351 - String Compression(区间DP)
- UVa11127 - Triple-Free Binary Strings
- python 公开课视频
- ArrayList.add(int index, E element)
- 桟和队列--排队买饭
- WebForm 基础2