rabbitmq3.6.9+erl18.2.1+centos7.3 final installation version

Install dependencies:

  yum install gcc glibc-devel make ncurses-devel openssl-devel xmlto

1) Install GCC GCC-C++ Openssl and other modules, you don't need to install it after installation

[plain] view plain copy
  1. yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel  
2) Install ncurses
[plain] view plain copy
  1. yum -y install ncurses-devel 

1.Erlang installation configuration

  Download the installation package at http://www.erlang.org/downloads, I chose otp_src_18.2.1.tar.gz.

  Then unzip the file:

[root@iZ25e3bt9a6Z rabbitmq]# tar -xzvf otp_src_18.2.1.tar.gz
[root@iZ25e3bt9a6Z rabbitmq]# cd otp_src_18.2.1/

  Configure the installation path to compile the code:

[root@iZ25e3bt9a6Z otp_src_18.3]# ./configure --prefix=/opt/erlang

  Execute the compilation result:

[root@iZ25e3bt9a6Z otp_src_18.3]# make && make install

  After completion, enter /opt/erlang to view the execution result

[root@iZ25e3bt9a6Z rabbitmq]# cd /opt/erlang/
[root@iZ25e3bt9a6Z erlang]# erl
Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V7.3  (abort with ^G)
1>

  The installation is complete when the above message appears. Then enter 'halt().' to exit.

  Then configure the Erlang environment variables, vi /etc/profile file, and add the following environment variables:

#set erlang environment
export PATH=$PATH:/opt/erlang/bin


  source /etc/profile makes the file take effect

  In the process of installing Erlang, the following problems may be encountered, which are generally caused by the lack of corresponding packages in the system. The missing packages can be installed directly with yum.

If you find that there is a problem with rabbitmq later: if you cannot add_user, please perform the following steps

3) Install erlang environment

[plain] view plain copy
  1. wget http://erlang.org/download/otp_src_18.2.1.tar.gz  
  2. tar xvfz otp_src_18.2.1.tar.gz   
  3. ./configure   
  4. make install 
2. Download and install RabbitMq

[root@iZ25e3bt9a6Z rabbitmq]# wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-generic-unix-3.6.9.tar.xz

  unzip files

[root@iZ25e3bt9a6Z rabbitmq]# xz -d rabbitmq-server-generic-unix-3.6.9.tar.xz
[root@iZ25e3bt9a6Z rabbitmq]# tar -xvf rabbitmq-server-generic-unix-3.6.9.tar [here Copy it directly into /opt/]

  After decompression, go to the folder /opt and find an additional folder rabbitmq-server-generic-unix-3.6.9, renamed rabbitmq for memory.

  Then configure the rabbitmq environment variables, vi /etc/profile file, and add the following environment variables:

#set rabbitmq environment
export PATH=$PATH:/opt/rabbitmq/sbin[ export  PATH used here =/opt/rabbitmq/sbin:$PATH   ]

  source /etc/profile makes the file take effect

  3. The RabbitMQ service starts and shuts down

  The above has completed the installation of RabbitMq, how to start the service?

  Start the service:

[root@iZ25e3bt9a6Z rabbitmq]# cd sbin/

[root@iZ25e3bt9a6Z sbin]# ./rabbitmq-server [there is a difference here]


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325502650&siteId=291194637