Install Rabbitmq__linux under Linux

Source: Internet
Author: User

The original address, reproduced please indicate the source: Http://blog.csdn.net/qq_34021712/article/details/72567786© Wang-game
1. Install Erlang Environment


1 installation of GCC gcc-c++ OpenSSL modules, installation will not need to install the

Yum-y install make GCC gcc-c++ kernel-devel M4 ncurses-devel
2) Installation ncurses
Yum-y Install Ncurses-devel
3 Install Erlang Environment
wget http://erlang.org/download/otp_src_18.2.1.tar.gz
tar xvfz otp_src_18.2.1.tar.gz 
./configure 
Make Install


2. Install RABBITMQ


1) Download Rabbitmq-server-3.6.9.tar.xz

wget HTTP://WWW.RABBITMQ.COM/RELEASES/RABBITMQ-SERVER/V3.6.9/RABBITMQ-SERVER-GENERIC-UNIX-3.6.9.TAR.XZ    
2 for download XZ package for decompression, first download XZ compression tool:
Yum Install XZ
3 The RABBITMQ package for decompression:
xz-d xz-d rabbitmq-server-generic-unix-3.6.9.tar.xz
tar-xvf Rabbitmq-server-generic-unix-3.6.9.tar
4) subsequently moved to/usr/local/under the name RABBITMQ:
Cp-r RABBITMQ_SERVER-3.6.9/USR/LOCAL/RABBITMQ
5 This way to download the method can be directly used after decompression, no need to compile the installation;
Into the rabbit file, the command file exists under the Sbin folder, so you need to add the path to the Sbin folder in path: Modify/etc/profile
export path=/usr/local/rabbitmq/sbin:$ Path   
execution Source/etc/profile makes the path path update and RABBITMQ installation succeeds.
6 subsequently enable MQ Management mode:
Rabbitmq-plugins Enable Rabbitmq_management   #启动后台管理
rabbitmq-server-detached	#后台运行rabbitmq
7 to set the port number for external access:
Iptables-i input-p TCP--dport 15672-j ACCEPT
8) Add Users and permissions
The default page guest user is not allowed to access, need to add a user to modify the permissions, the code is as follows:
Add User: Rabbitmqctl add_user admin Admin

Add Permission: Rabbitmqctl set_permissions-p "/" admin ". *" ". *" ". *"

Modify User role: Rabbitmqctl set_user_tags admin Administrator

Then you can access it remotely, and then you can configure information such as user rights directly.






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.