Linux installation RABBITMQ

Source: Internet
Author: User
Tags openssl iptables rabbitmq

Installing the RABBITMQ requires an early installation of Elarge.

Refer to multiple blog installs, various problems, various failures. Various dependency issues.

So record the installation steps.

1. Install Elarge:

wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

RPM-UVH erlang-solutions-1.0-1.noarch.rpm

Install various dependencies:

Yum-y Install UnixODBC unixodbc-devel wxbase wxgtk SDL WXGTK-GL

Yum-y install install make GCC gcc-c++ kernel-devel M4 ncurses-devel OpenSSL openssl-devel xmlto zip unzip

Yum-y Install Gtk2-devel Binutils-devel

Download these three dependencies:

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/wxGTK3-3.0.2-14.el6.x86_64.rpm

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/wxGTK3-3.0.2-14.el6.x86_64.rpm

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/wxBase3-3.0.2-14.el6.x86_64.rpm

Install the downloaded three dependencies:

RPM-IVH wxbase3-3.0.2-14.el6.x86_64.rpm

RPM-IVH libmspack-0.5-0.1.alpha.el6.x86_64.rpm

RPM-IVH libmspack-0.5-0.1.alpha.el6.x86_64.rpm

Download otp_src_19.3.tar.gz:

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

Decompression otp_src_19.3.tar.gz:

Tar-xvzf otp_src_19.3.tar.gz
CD otp_src_19.3

To configure CD otp_src_19.3:

./configure--enable-smp-support--enable-threads--enable-sctp--enable-kernel-poll--enable-hipe--with-ssl

The above parameter description:
--prefix Specifying the installation directory
--enable-smp-support enable symmetric multi-processing support (abbreviation for symmetric multi-processing symmetric multi-processing structure)
--enable-threads Enabling asynchronous Threading support
--ENABLE-SCTP enable Flow Control protocol support (stream control transmission Protocol, flow-controlled transport protocol)
--enable-kernel-poll enabling the Linux kernel poll
--enable-hipe Enabling High performance Erlang (higher performance Erlang) reference: http://www.cnblogs.com/me-sa/archive/2012/10/09/erlang_hipe.html
--with-ssl Using SSL Packages

Perform a Life installation

Make && make install

The next steps are to detect if Erlang is installed properly
Find/-name Erlang

/root/otp_src_19.3/lib/jinterface/java_src/com/ericsson/otp/erlang
/usr/share/java/erlang
/usr/local/lib/erlang
/usr/lib64/erlang

Find/-name Erl

/root/otp_src_19.3/bin/erl
/root/otp_src_19.3/bootstrap/bin/erl
/root/otp_src_19.3/erts/etc/win32/msys_tools/erl
/root/otp_src_19.3/erts/etc/win32/cygwin_tools/erl
/usr/local/bin/erl
/usr/local/lib/erlang/erts-8.3/bin/erl
/usr/local/lib/erlang/bin/erl

If the following information appears, it indicates that Erlang is installed properly
[Email protected] ~]#/usr/local/bin/erl
ERLANG/OTP [erts-8.3] [source] [64-bit] [smp:2:2] [async-threads:10] [hipe] [Kernel-poll:false]

2. Installing RABBITMQ

Download RABBITMQ-SERVER-GENERIC-UNIX-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

Install XZ decompression Software:
Yum-y Install XZ

Extract:

Xz-d RABBITMQ-SERVER-GENERIC-UNIX-3.6.9.TAR.XZ
TAR-XVF Rabbitmq-server-generic-unix-3.6.9.tar

Configure environment variables (this I do not configure)
Erl_home=/usr/local/lib/erlang
Rabbitmq_home=/usr/local/rabbitmq
Path= $PATH: $ERL _home/bin:/usr/local/rabbitmq/sbin
Export Erl_home PATH rabbitmq_home

Start:

Rabbitmq-server start

At this time login http://IP:15672/also can not see the management interface.

Do the following.

Add user

[[email protected] sbin]# rabbitmqctl add_user Admin Admin
Creating user "admin" ...


Set user rights to Administrator
[Email protected] sbin]# rabbitmqctl set_user_tags Admin Administrator
Setting tags for the user "admin" to [Administrator] ...
[Email protected] sbin]#

View Plugins
[Email protected] sbin]# rabbitmq-plugins list
Configured:e = explicitly enabled; E = implicitly enabled
| Status: * = running on [email protected]
|/
[] amqp_client 3.6.9
[] Cowboy 1.0.4
[] Cowlib 1.0.2
[] Rabbitmq_amqp1_0 3.6.9
[] Rabbitmq_auth_backend_ldap 3.6.9


Enable plugins, you can use the RABBITMQ management interface
[Email protected] sbin]# Rabbitmq-plugins enable rabbitmq_management
The following plugins has been enabled:
Amqp_client
Cowlib
Cowboy
Rabbitmq_web_dispatch
Rabbitmq_management_agent
Rabbitmq_management

Applying plugin configuration to [email protected] started 6 plugins.

View Run status
[Email protected] sbin]# rabbitmqctl status
Status of node [email protected] ...
[{pid,1612},
{running_applications,
[{rabbitmq_management, "RABBITMQ Management Console", "3.6.9"},
{rabbitmq_management_agent, "RABBITMQ management Agent", "3.6.9"},
{amqp_client, "RabbitMQ AMQP client", "3.6.9"},

{kernel, "ERTS CXC 138 10", "5.2"}]},
{Os,{unix,linux}},
{erlang_version,
"ERLANG/OTP [erts-8.3] [source] [64-bit] [smp:2:2] [async-threads:64] [hipe] [kernel-poll:true]\n"},
{Memory,
[{total,60247192},
{connection_readers,0},

{uptime,466},
{kernel,{net_ticktime,60}}]

View the list of users
[Email protected] sbin]# Rabbitmqctl list_users
Listing users ...
admin [Administrator]
Guest [Administrator]

Restart Service:

Service Iptables Restart

To this, the beautiful interface can see!!!

Background start RABBITMQ command
/usr/local/rabbitmq/sbin/rabbitmq-server-detached

If the login http://IP:15672/still cannot see the management interface. There may be a firewall problem.

The firewall needs to be processed:

Locate the Iptables configuration path:
[Email protected] sbin]# Find/-name iptables
/etc/sysconfig/iptables

To modify a configuration file:
[Email protected] sbin]# Vi/etc/sysconfig/iptables
-A input-m state--state new-m tcp-p TCP--dport 27017-j ACCEPT
-A input-m state--state new-m tcp-p TCP--dport 28017-j ACCEPT

-A input-m state--state new-m tcp-p TCP--dport 15672-j ACCEPT
-A input-m state--state new-m tcp-p TCP--dport 5672-j ACCEPT
-A input-m state--state new-m tcp-p TCP--dport 25672-j ACCEPT

Restart Service:

Service Iptables Restart

Reference Blog: http://blog.csdn.net/spyiu/article/details/32134443

Interface Management Introduction can refer to: http://blog.csdn.net/u013696226/article/details/21530659

Linux installation RABBITMQ

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.