Linux Common development environment software-RABBITMQ installation

Source: Internet
Author: User
Tags rabbitmq

1. Install dependent packages

Yum Install xmlto gcc gcc-c++ kernel-devel M4 ncurses-devel openssl-devel unixodbc-devel wxbase wxgtk wxGTK-gl perl-y// Install dependent packages

2. Installing Erlang

wget http://erlang.org/download/otp_src_20.2.tar.gz //download Erlang compression pack

TAR-XVF otp_src_20.2.tar.gz-c/usr/local///extract to/user/local directory

MV/USR/LOCAL/OTP_SRC_20.2/USR/LOCAL/OTP//renamed OTP

CD/USR/LOCAL/OTP//Enter OTP

./configure--prefix=/usr/local/erlang//configuration prefix

Make && make install//compile and install

ERL//If able to enter instructions for installation success

Halt (). Quit Erlang's shell

  Note: CentOS6 and CentOS7 are different versions, CentOS6 is EL6,CENTOS7 for EL7

3, Installation RABBITMQ

download link https://github.com/rabbitmq/ rabbitmq-server/releases // Find the corresponding version download from above, here is Rabbitmq-server-generic-unix-3.7.3.tar

wget HTTPS://GITHUB.COM/RABBITMQ/RABBITMQ-SERVER/RELEASES/DOWNLOAD/V3.7.3/RABBITMQ-SERVER-GENERIC-UNIX-3.7.3.TAR.XZ

TAR-XVF rabbitmq-server-generic-unix-3.7.3.tar.xz-c/usr/local///Unzip to/usr/local/

MV/USR/LOCAL/RABBITMQ_SERVER-3.7.3/USR/LOCAL/RABBITMQ//Rename

4. Configure environment variables (Erlang and MQ)

Vim/etc/profile//Configure environment variables

  

Source/etc/profile//Let environment variables take effect

5, RABBITMQ start

Rabbitmq-plugins Enable Rabbitmq_management//open Web Management plugin

rabbitmq-server-detached//Start RABBITMQ service, HTTP://IP Address: 15672/access

Rabbitmqctl Status//view state

Rabbitmqctl Stop//Shutdown service

Rabbitmqctl list_users//List roles

  

Rabbitmqctl add_user DSD dai123//Add Users

Rabbitmqctl set_user_tags DSD administrator//z modifying user roles

Rabbitmqctl set_permissions-p/DSD "." "." ". *"//Add permission

  

Permission settings: Rabbitmqctl set_permissions [-P vhostpath] {user} {conf} {write} {read}
Conf: a regular expression match which configuration resources can be accessed by that user.
Write: A regular expression match which configuration resources can be read by the user.
READ: A regular expression match which configuration resources can be accessed by that user.

Note: The http://192.168.2.121:15672/interface cannot be accessed by the external server by default and needs to be configured

Vim/usr/local/rabbitmq/ebin/rabbit.app//find: Loopback_users << "Guest" >> Delete. [{rabbit, [{loopback_users, []}]}].

Then reboot to

Linux Common development environment software-RABBITMQ installation

Related Article

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.