The recent use of RABBITMQ found that it was not easy to manage queues using RABBITMQ only on the command line, and later found that RABBITMQ provided a way to end the console. It's very convenient. Screenshot of the interface is as follows:
The specific installation method is as follows:
First enter the
-- prefix =/usr/local/erlang // production installation configuration make make install // compile and install
Configure the erlang environment variable:
Vi/etc/profile // Add the following content at the bottom # set erlang environment ERL_HOME =/usr/local/erlang PATH = $ ERL_HOME/bin: $ PATH export ERL_HOME PATHsource/etc/profile // takes effect
Run the erl command on the console to test whether the installation is successful.
Erl // if you enter
RabbitMQ Article 1: setup and configuration of rabbitMQ and rabbitmq Article 1
Install rabbitMQ in WindowsStep 1: Install software
If rabbitMQ is installed, first install OTP software based on the erlang language, and then download the r
the queue. There is no limit on the queue capacity. You can store any number of messages-basically an infinite buffer. Multiple producers can send messages to the same queue. Likewise, multiple consumers can also obtain data from the same queue. The queue can be drawn as follows (the queue name is shown in the figure ):
Consumption is the same as obtaining a message. A consumer is a program waiting to get messages. Let's draw "C ":
Generally, the message producer, consumer, and proxy are
. NET, how to use RABBITMQ.An environment constructionFirst, because RABBITMQ is written using Erlang and needs to run on the Erlang runtime environment, you need to install the Erlang Runtime environment before installing RABBITMQ server, and you can download the installation files for the corresponding platform on the Erlang website. If you do not install the runtime environment, you will be prompted to i
. NET, how to use RABBITMQ.An environment constructionFirst, because RABBITMQ is written using Erlang and needs to run on the Erlang runtime environment, you need to install the Erlang Runtime environment before installing RABBITMQ server, and you can download the installation files for the corresponding platform on the Erlang website. If you do not install the runtime environment, you will be prompted to i
. NET, how to use RABBITMQ.An environment constructionFirst, because RABBITMQ is written using Erlang and needs to run on the Erlang runtime environment, you need to install the Erlang Runtime environment before installing RABBITMQ server, and you can download the installation files for the corresponding platform on the Erlang website. If you do not install the runtime environment, you will be prompted to i
. NET, how to use RABBITMQ.An environment constructionFirst, because RABBITMQ is written using Erlang and needs to run on the Erlang runtime environment, you need to install the Erlang Runtime environment before installing RABBITMQ server, and you can download the installation files for the corresponding platform on the Erlang website. If you do not install the runtime environment, you will be prompted to i
message Agent tool in RABBITMQ, as well as in the. NET, how to use RABBITMQ.An environment constructionFirst, because RABBITMQ is written using Erlang and needs to run on the Erlang runtime environment, you need to install the Erlang Runtime environment before installing RABBITMQ server, and you can download the installation files for the corresponding platform
[RabbitMQ] 6. Confirm the message of the rabbitmq producer and the rabbitmq producer.
Through the Publisher Confirms and Returns mechanism, the producer can determine whether the message is sent to exchange and queue. Through the consumer confirmation mechanism, Rabbitmq can decide whether to resend the message to the
middleware is mainly used for decoupling between components, the sender of the message does not need to know the existence of the message consumer, and vice versa. The main features of AMQP are message-oriented, queue, routing (including point-to-point and publish/subscribe), reliability, and security. RABBITMQ is an open-source AMQP implementation that is written in Erlang and supported by a variety of clients such as Python, Ruby,. NET, Java, JMS,
:55672
a . if it's installed as a service, start with this.[Email protected] ~]# service Rabbitmq-server restartWarning:ignoring/etc/rabbitmq/rabbitmq.conf--location has moved to/etc/rabbitmq/rabbitmq-env.confRestarting Rabbitmq-server:failed-check/var/log/
= new DateTime (). toString ("Yyyy-mm-dd HH:mm:ss");Console.log ("Send Message {}", value);Rabbittemplate.convertandsend (Rabbitmqconfig.exchange_name, Rabbitmqconfig.routing_key, value);}}). Start ();return "OK";}}ConsumerThe consumer is also very simple, only need the corresponding method to add @RabbitListener annotations, specify the queue name to listen to.Run the projectRun the project, then open the browser and enter Http://localhost:9999/sendMessage (specific address according to the se
Attach to a console
A process can be attached to a console using the attachconsole function, and only one console can be attached to a process. A console can have many processes attached to it. You can call the getconsoleprocesslist function to obtain the list attached to a consol
Install the latest version of RABBITMQ (3.3.1), and enable management plugin, using the default account guest login to the management console, but prompted the login failed.
After looking through the official release document, I learned that because the account guest has all the operation rights, and is the default account, for security reasons, guest users can only use localhost login, It is recommended th
Basic concepts of RabbitMQ and rabbitmq
Go to: http://blog.csdn.net/whycold/article/details/41119807About RabbitMQ
AMQP (Advanced Message Queuing Protocol) is an open standard for application layer protocols and is designed for Message-oriented middleware. Message-oriented middleware is mainly used for decoupling between components. message senders do not need to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.