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.