CentOS RabbitMq installation, centosrabbitmq

Source: Internet
Author: User
Tags rabbitmq

CentOS RabbitMq installation, centosrabbitmq
Install Erlang1 and install the pre-Environment

Install the following components through yum.

yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
2. Download Erlang and decompress it.

Go to Erlang Official Website: http://www.erlang.org/downloads

It should be noted that to find the version compatible with the current rabbitmq: http://www.rabbitmq.com/which-erlang.html

Download Erlang:

wget http://erlang.org/download/otp_src_19.3.tar.gz

 

Decompress:

tar -xvf otp_src_19.3.tar.gz

3. Configure and install

Because we downloaded the source code file of Erlang, we installed it in the form of source code.

First, check the compiling environment and configure the installation path./configure

./configure --prefix=/usr/erlang --without-javac

 

 

Make to compile the source code

 

Make install to start Installation

[root@training erlang]# make install

4. Set Environment Variables
[root@training ~]# vim /etc/profile

 

Note that you need to run the following command to make the environment variable take effect immediately.

[root@training ~]# source /etc/profile
5. Check whether the installation is successful.

Install RabbitMq-Server1, download RabbitMq-Server and unzip

Go to the official site of RabbitMq to find: http://www.rabbitmq.com/download.html

Download the binary file directly.

[root@training software]# wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.11/rabbitmq-server-generic-unix-3.6.11.tar.xz

 

 

Decompress:

Because it is a tar. xz file, you must first run the xz command and then run the tar command to decompress it.

[root@training software]# xz -d rabbitmq-server-generic-unix-3.6.11.tar.xz 

 

 

Run the tar command again.

[root@training software]# tar -xvf rabbitmq-server-generic-unix-3.6.11.tar 
2. Configure and install

The downloaded binary file can be directly copied to the/usr/directory for running.

Copy the binary file to/usr/rabbitmq

[root@training software]# cp -rv rabbitmq /usr/
3. Set Environment Variables
[root@training software]# vim /etc/profile

 

 

Run the following command to make the environment variable take effect immediately.

[root@training software]# source /etc/profile 
4. Enable Web Monitoring

Run the following command to enable Web monitoring.

[root@training software]# rabbitmq-plugins enable rabbitmq_management

5. Start

Open your browser and enter http: // localhost: 15672/, and the username and password: guest/guest to log on.

Note: guest/guest can only be logged on under localhost. Therefore, after logging on to the server, you must create an administrator user (such as admin) for remote management.

 

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.