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-node1 ~] # Vim/etc/
browser to view the RabbitMQ WEB Management page. Are you very excited? But you don't have an account or password. Don't worry.Configure the access account password and permissions:
By default, webpage access is not allowed. You need to add a user to modify the permission. The Code is as follows:
Rabbitmqctl add_user superrd // Add a user. The following two parameters are the user name and password. I have used superrd. Rabbitmqctl set_permissions-p/
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
server
1.2 Creating a virtual host on a RABBITMQ server
1.3 Creating a user
1.4 Adding administrator roles to users
1.5 Setting the user's permissions on the virtual host
Set_permissions-p vhostsjj Shijunjie ". *" ". *" ". *"
1.6 Installing the Web-based management plug-in
Following the above configuration, you can see the information in the admin interface.
Attached: Some commo
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-
:15672 55672 can also jump directly to the following Web Admin
Login account password default is guest
4, start RABBITMQ Server
/etc/init.d/rabbitmq-serverstart
or
service Rabbitmq-service start
5, Management
The RABBITMQ server is managed mainly through the Rabbitmqctl a
[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
address (domain address/IP)Factory.sethost ("127.0.0.1"); //Set server port numberFactory.setport (5672); //setting up a virtual host (equivalent to a library in a database)Factory.setvirtualhost ("/"); //Set user nameFactory.setusername ("admin"); //Set PasswordFactory.setpassword ("888888"); Connection=factory.newconnection (); returnconnection; } Catch(Exception e) {return NULL; } }}2.3. Simple producer-consumer modelWork map taken from
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,
there is no impact, you can use Rpm-ivh--nodeps rabbitmq-server-3.6.0-1.noarch.rpm installation.If the installation is not successful: use the following trickthreeRABBITMQInstallation Configuration
There are many versions of RABBITMQ installed, and we use the generic UNIX version.
CD/
wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.7.1/
factory.setPort(5672); //设置虚拟主机(相当于数据库中的库) factory.setVirtualHost("/"); //设置用户名 factory.setUsername("admin"); //设置密码 factory.setPassword("888888"); connection = factory.newConnection(); return connection; } catch (Exception e) { return null; }}}Copy Code2.3. Simple producer-consumer modelWork map taken from the production and consumption model of the official website (
IntroductionThe environment here uses the Mac OS X system, all configured and used based on Mac OS X and Python 2.7 and the corresponding Pika library.RABBITMQ Installation and Configuration installation section#brew install rabbitmqConfigure and start#sudo brew services start rabbitmq#sudo rabbitmqctl add_user admin admin "创建用户(
bogon:address (cannot connect to Host/port)RABBITMQ Default User is BogonSoVi/etc/hosts joins a row 127.0.0.1 BogonThen again service Rabbitmq-server start starts normallysh-4.1#/sbin/service rabbitmq-server StartStarting rabbitmq-server:successRabbitmq-server.Common RABBITMQ
Rabbit_control_main \-nodename $RABBITMQ _nodename \-extra "[Email protected]"Copy CodeTo enable the Web Management console:Copy Code[Email protected]:/usr/lib/rabbitmq/bin$ sudo./rabbitmq-plugins Enable Rabbitmq_managementThe following plugins has been enabled:MochiwebWebmachineRabbitmq_web_dispatchAmqp_clientRabbitmq_management_agentRabbitmq_managementApplying
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.