Under centos 7 rabbitmq 3.8.0 & erlang 22.1 source compiler installation
Before installation check that good erlang version and rabbitmq matches
Reference: RabbitMQ Erlang Version Requirements
1. erlang 22.1 source compiler installation
1.1 Installation Erlang compiler to install the necessary dependence
sudo yum install -y gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git
wget http://erlang.org/download/otp_src_22.1.tar.gz
1.3 Compile and install
# Extract the tar -zvxf otp_src_22. 1 . Tar .gz Disc otp_src_22. 1 # Compile & installation ./otp_build autoconf ./configure && make && sudo make install
Installed by default in / usr / local / lib / erlang / directory
1.4 verification
erl - version Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 10.5 or erl Erlang/OTP 22 [erts-10.5] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [hipe] Eshell V10.5 (abort with ^G) 1>
2. rabbitmq 3.8.0 binary installation
2.1 Download the installation package rabbitmq
wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.8.0/rabbitmq-server-generic-unix-3.8.0.tar.xz
2.2 Unpack and configuration environment variable
Note downloaded file format is xz, xz XZ Utils is a tool command a high compression ratio for POSIX platform. It uses LZMA2 compression algorithm, to generate compressed files using POSIX platform than the traditional gzip, bzip2 compressed file generated is smaller and decompression speed quickly. Initially XZ Utils is based on LZMA-SDK development, but LZMA-SDK contains a number of properties WINDOWS platform, so as to accommodate the XZ Utils made substantial changes POSIX platforms. XZ Utils appears also to replace the old POSIX system LZMA Utils.
Decompression:
xz -d rabbitmq-server-generic-unix-3.8.0.tar.xz tar -xvf rabbitmq-server-generic-unix-3.8.0.tar mv rabbitmq_server-3.8.0 /usr/local/
Configuration environment variable:
vim /etc/profile # Add the following command in the last line export PATH=$PATH:/usr/local/lib/erlang/bin:/usr/local/rabbitmq_server-3.8.0/sbin source /etc/profile
2.3 Starting rabbitmq
rabbitmq-plugins enable rabbitmq_management
RabbitMQ -server or rabbitmq-server -detached (background)
2.4 Add a new user
The default account password is (guest / guest)
where the newly added account: admin / admin
rabbitmqctl add_user admin admin
rabbitmqctl set_user_tags admin administrator
2.5 stop rabbitmq
rabbitmqctl shutdown
2.6 modify core configuration parameters
rabbitmq core configuration parameters in /usr/local/rabbitmq_server-3.8.0/ebin/rabbit.app
vim /usr/local/rabbitmq_server-3.8.0/ebin/rabbit.app # Loopback_users modified as follows to find content (removing << " Guest " >> in << "" >>) {loopback_users, [Guest]},
You will be able to lift the guest account to log on locally modified after the limit.
Reference article: