RabbitMQ Article 1: setup and configuration of rabbitMQ and rabbitmq Article 1
Install rabbitMQ in Windows
Step 1: Install software
If rabbitMQ is installed, first install OTP software based on the erlang language, and then download the rabbitMQ software for installation (the installation process is the next step, which is not mentioned here)
Step 2: Configure Environment Variables
If you want to configure environment variables after the installation is complete, first configureERLANG_HOMEFor example, the variable value is the path of your otp software)
Then in the configurationRABBITMQ_SERVERFor example, the variable value is the installation path of rabbitMQ)
Final ProgressPathFor example, (the path value is % ERLANG_HOME % \ bin; % RABBITMQ_SERVER % \ sbin; note that it is append)
Step 3: Start the monitoring manager
Find the path for installing rabbitMQ and switch to the sbin folder.
Enter the rabbitmq-plugins enable rabbitmq_management command to start the monitoring manager.
Then, enter http: localhost: 15672 in the browser. The username and password are both guest by default.
In this way, we have installed it.
Step 4: Use common commands of rabbitMQ to start monitoring manager: rabbitmq-plugins enable rabbitmq_management disable monitoring manager: rabbitmq-plugins disable rabbitmq_management start rabbitmq: rabbitmq-service start disable rabbitmq: rabbitmq-service stop view all Queues: rabbitmqctl list_queues clear all Queues: rabbitmqctl reset close application: rabbitmqctl stop_app start application: rabbitmqctl start_app
User and permission settings (for later use)
Add User: rabbitmqctl add_user username password assign role: rabbitmqctl modify username administrator add Virtual Host: rabbitmqctl add_vhost vhost_name authorize new virtual host to new user: rabbitmqctl set_permissions-p vhost_name username '. *''. *''. *'
Role description
None minimum permission role management administrator role policymaker decision maker monitoring administrator Super administrator