(1) Preparations for using the series of surging for the surging microservice framework rabbitmq installation and surgingrabbitmq
(1) download erlang:
Http://www.erlang.org/download/otp_win64_17.3.exe and Installation
(2) download RabbitMQ:
Http://www.rabbitmq.com/and Installation
(3)After downloading and installing the service, find the Service Startup option and enable the rabbitmq service.
So far, the rabbitqm service has been successfully started.
(4)To enable the management backend of rabbitmq, you must enable
Go to the sbin directory in the rabbitmq installation directory and execute
Rabbitmq-plugins enable rabbitmq_management
Restart the rabbitmq service to take effect.
Open http: // localhost: 15672/to view the management background (the default username and password are both guest and guest cannot be used for remote access)
(5)Configure the remote connection of rabbitmq
In the web Console
Add a user to the admin tab, set your username and password, select admin for permissions, and click adduser
Then configure to Add User Permissions
Click the user you just set and set the permission. The default value is enough.
Then add {tcp_listeners, [5672]}, {loopback_users, ["test"]} in the configuration file, and the command can be accessed remotely.
OK. The installation and configuration of rabbitmq have been completed.
(6) rabbitmq configuration in surging
The configuration file eventBusSettings. json is required in the server and client created by using surging.
Server: EventBusConnection: Address of the rabbitmq connection, EventBusUserName: User Name of rabbitmq, and password of the username of EventBusPasswod: rabbitmq.
Client:, you only need to configure the rabbit connection address.