Ubantu installation RABBITMQ steps __ Queue

Source: Internet
Author: User
Tags rabbitmq
RABBITMQ Installation Steps

(1) To install RABBITMQ under Linux, you need to install the Erlang installation package first. Because RABBITMQ is written in Erlang language, you need to configure Erlang's environment first.

(2), Erlang installation:

Download installation package Address: Http://www.erlang.org/downloads, I downloaded the tar.gz

Copy the downloaded installation package to the virtual machine and unzip it. TAR-XZVF otp_src_18.3.tar.gz Configuration Installation path: CD otp_src_18.3/./configure–prefix=/opt/erlang
(Install into the/opt/erlang folder) compile source file make install make install installation complete, enter the installation directory Cd/opt/erlang, enter the command pwd, copy the current directory, use VI command VI
/etc/profile at the end of the file, add the environment variable for ERLANG: Export Erlang_home=/opt/erlang
(Declaring the installation directory for ERLANG) export Path=erlang_home/bin: $PATH
(Connect Erlang's environment variables with the system's environment variables, Linux uses: as delimiters for environment variables)

(3), RABBITMQ installation:

Download installation package Address: http://www.rabbitmq.com/releases/rabbitmq-server/
I downloaded the rabbitmq-server-generic-unix-3.5.7.tar.gz.

Copy the rabbitmq-server-generic-unix-3.5.7.tar.gz to the virtual machine, and then unzip the tar XZVF
Rabbitmq-server-generic-unix-3.5.7.tar.gz after decompression, the extracted folder will be copied to the/OPT use command: Cp-r rabbitmq_server-3.5.7
/OPT, and then modify the folder name using the command: MV rabbitmq_server-3.5.7 RABBIT_MQ set RABBITMQ environment variable into the unpacked folder, CD RABBIT_MQ
Locate the directory where Sbin is located, use the PWD command, and then add the RABBITMQ environment variable to the/etc/profile file. Export
RABBIT_HOME=/OPT/RABBIT_MQ (Declaration of installation directory for RABBITMQ) export
Path=rabbit_home/sbin: $PATH
(RABBITMQ environment variables and system environment variables splicing, Linux use: Symbols as environment variable separator) set up, refresh the configuration file, use the command: Source/etc/profile start the Rabbitmqweb interface, That is, you can allow users to enter 127.0.0.1:15672 access RABBITMQ in the browser, first into the RABBITMQ installation directory sbin, you can see the plugins configuration
You can use the command: Rabbitmq-plugins enable rabbitmq_management rabbitmqweb default account: Guest Password: Guest, we can add users, set roles, and set permissions. Add user admin and set password to 123456 you can use the command: Rabbitmqctl add_user admin 123456
Assign an administrator role to an account, you can use the command: Rabbitmqctl set_user_tags admin Administrator
Set permissions for the account, you can use the command: Rabbitmqctl set_permissions-p/admin "." “.”
". *" (on behalf of the configuration permissions, write permissions, read permissions) H: After assigning permissions, you can start RABBITMQ to start MQ, first to enter the installation directory sbin, use./rabbitmq-server
-detached Shutdown Service: rabbitmqctl stop with Command

(4), can use the ip+ port way access, RABBITMQ default port is 5672, the default port of the Web page is 15672 so you can use the browser to access 127.0.0.1:15672, enter username Admin and password 123456 If you can access the success, Indicates that MQ has started successfully.

(5), view RABBITMQ port conditions can use the pipeline command: Ps-aux | grep RABBITMQ

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.