Problem:The RABBITMQ (3.3.4 version) service was installed yesterday, and the Rabbitmq_management plugin was enabled to manage the RABBITMQ service, but a login failed error occurred while using the Guest user login in the Access management interface.The query log to the server indicates that an error occurred because: HTTP access Denied:user ' guest '-user can only log on via localhost.Solve:RABBITMQ from
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
for security purposes, the guest account can only log on from localhost. If you need a guest account, you can remotely log on to rabbitmq. conf file: # according to the instructions, remove the comments of Line 1 parameters and the symbols at the end of the sentence. We recommend that you do not enable remote logon for the guest account. # restart the service and the configuration takes effect. [Root @ rmq
install rabbitmq-server-3.4.1-1.noarch.rpm4. Start RabbitMQ ServerRegister as a system serviceSudo chkconfig rabbitmq-server onStart RabbitMQ ServerSudo/etc/init. d rabbitmq-server stop/start/etcSudo service rabbitmq-server stop/
remotely. If you want to allow only local access to the newly added users, you can add the user name to the list above. For example, only allowadminUser access on the local machine.
{loopback_users, ["admin"]}
Update the configuration and restart it.
[[Email protected] Access] # systemctl status rabbitmq-server ● rabbitmq-server.service-rabbitmq broker loaded: l
management tool to install it: sudo pip install pika = 0.9.8 installation depends on pip and git-core packages, you may need to install them first. On ubuntu: sudo apt-get install python-pip git-core On Debian: sudo apt-get install python-setuptools git-coresudo easy_install pip on Windows: easy_install pippip install pika = 0.9.8
Send
Our first program send. py will send a message to the queue. The first thing we need to do is to establish a connection with
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
painting It "C":
Typically, message producers, message consumers, and message agents are not on the same machine.2.1 Hello WorldTo demonstrate the basic use of RABBITMQ, we send a HelloWorld message and then receive and process it.Start by creating a console program to send messages to the RABBITMQ message queue with the following code: static void Main (string[] args) { var factory = new
painting It "C":
Typically, message producers, message consumers, and message agents are not on the same machine.2.1 Hello WorldTo demonstrate the basic use of RABBITMQ, we send a HelloWorld message and then receive and process it.Start by creating a console program to send messages to the RABBITMQ message queue with the following code: static void Main (string[] args) { var factory = new
painting It "C":
Typically, message producers, message consumers, and message agents are not on the same machine.2.1 Hello WorldTo demonstrate the basic use of RABBITMQ, we send a HelloWorld message and then receive and process it.Start by creating a console program to send messages to the RABBITMQ message queue with the following code: static void Main (string[] args) { var factory = new
painting It "C":
Typically, message producers, message consumers, and message agents are not on the same machine.2.1 Hello WorldTo demonstrate the basic use of RABBITMQ, we send a HelloWorld message and then receive and process it.Start by creating a console program to send messages to the RABBITMQ message queue with the following code: static void Main (string[] args) { var factory = new
a program waiting to get a message. We're painting It "C":
Typically, message producers, message consumers, and message agents are not on the same machine.2.1 Hello WorldTo demonstrate the basic use of RABBITMQ, we send a HelloWorld message and then receive and process it.Start by creating a console program to send messages to the RABBITMQ message queue with the following code: static void Main (st
Files (x86) \RABBITMQ Server\rabbitmq_server-3.5.5\sbin>rabbitmq-plugins.bat enable Rabbitmq_ Managementthe following plugins have been Enabled:mochiweb webmachine rabbitmq_web_dispatch amqp_client Rabbitmq_man Agement_agent rabbitmq_managementapplying plugin configuration to [email protected] started 6 plugins.through http://localhost:15672/ access, the input g
distinguish these entities is to check whether they are configured by the server administrator or declared by the client at run time.The entities that can be configured are:-Message Broker, which listens for AMQ messages on ports such as TCP/IP.-Divides the message negotiation data into multiple virtual hosts of different collections, much like a virtual host in webserver, such as the Apache HTTP daemon.-Users who connect to the virtual host with security credentials.1 Require ' RubyGems ' 2 re
message queue and exchange work, the installation method is to open a command line CD into the RABBITMQ sbin directory, Input: Rabbitmq-plugins enable Rabbitmq_management command, you will find the plugins installation successful prompt, the default is to install 6 plug-ins, if you install the plug-in process, the following error occurred:Error 5; system error 2 .... such asThe workaround is to:First enter
[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
has changed. Restart RabbitMQ for changes to take effect.[root@vdevops ~]# systemctl restart rabbitmq-serverClient AccessHttp: // vdevops: 15672/Use rabbitmqadminYou can configure RabbitMQ to use rabbitmqadminDownload rabbitmqadmin from the Web UI. Log on to the Web UI and move to "http: // (host name or IP address): 15672/hosts". Then, upload the file to the se
RabbitMQ Command Prompt (sbin dir ). (Because I have run well, but no, the following is a picture theft, but the test is correct)
Enter rabbitmq-plugins enable rabbitmq_management to start the management plug-in. 2) Start the Management Service
Run rabbitmq-service.bat start. Now the service is ready. You can use the web interface to view some items.
Iv. Web Int
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.