Linux ct6.5 Installation RABBITMQ

Source: Internet
Author: User
Tags xml parser rabbitmq

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

1.Erlang installation Configuration

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

Then unzip the file:

[Email protected] rabbitmq]# TAR-XZVF otp_src_18.3.tar.gz
[Email protected] rabbitmq]# CD otp_src_18.3/

To configure the installation path compilation code:

[Email protected] otp_src_18.3]#/configure--prefix=/opt/erlang

To perform the compilation result:

[[email protected] otp_src_18.3]# make && make install

#install There will be some files that do not have permissions actually do not have Execute permissions chomd +x A: To a plus execute permissions

Then in configuring the Erlang environment variable, vi/etc/profile file, add the following environment variable:

erlang_home=/usr/Local/erlang

path= $ERLANG _home/bin:$PATH

Export Erlang_home

Export PATH source/etc/profile

Source/etc/profile make the file effective

During the installation of Erlang, you may encounter the following problems, generally due to the lack of appropriate packages in the system, the lack of any package directly yum installation.

/usr/rabbitmq/rabbitmq/sbin

Enter command Erl Check if installation is successful

Appear:

ERLANG/OTP [erts-7.3] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [Kernel-poll:false]

Eshell V7.3 (abort with ^g)

Erlang is installed successfully

2. Download and install RABBITMQ

[Email protected] rabbitmq]# wget HTTP://WWW.RABBITMQ.COM/RELEASES/RABBITMQ-SERVER/V3.6.1/ Rabbitmq-server-generic-unix-3.6.1.tar.xz

Unzip the file

[Email protected] rabbitmq]# xz-d RABBITMQ-SERVER-GENERIC-UNIX-3.6.1.TAR.XZ
[Email protected] rabbitmq]# TAR-XVF rabbitmq-server-generic-unix-3.6.1.tar-c/opt

After decompression into the folder/opt found a number of folders rabbitmq-server-generic-unix-3.6.1, renamed to RABBITMQ for memory.

Then in the configuration RABBITMQ environment variable, vi/etc/profile file, add the following environment variable:

#set RABBITMQ Environment
Export path= $PATH:/usr/rabbitmq/rabbitmq/sbin

Source/etc/profile make the file effective

3.RabbitMQ Service startup shutdown

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

Start the service:

[Email protected] rabbitmq]# CD sbin/
[[email protected] sbin]# ./rabbitmq-server-detached (Start message Service)

  

[[email protected] sbin]#/rabbitmqctl Status View service status:
Status of node [email protected] ...
[{pid,11849},
{running_applications,
[{rabbitmq_management, "RABBITMQ Management Console", "3.6.1"},
{rabbitmq_management_agent, "RABBITMQ management Agent", "3.6.1"},
{rabbitmq_web_dispatch, "RABBITMQ Web Dispatcher", "3.6.1"},
{webmachine, "Webmachine", "1.10.3"},
{amqp_client, "RabbitMQ AMQP client", "3.6.1"},
{mochiweb, "Mochimedia Web Server", "2.13.0"},
{syntax_tools, "syntax Tools", "1.7"},
{SSL, "ERLANG/OTP SSL Application", "7.3"},
{public_key, "Public Key Infrastructure", "1.1.1"},
{ASN1, "the Erlang ASN1 compiler version 4.0.2", "4.0.2"},
{crypto, "crypto", "3.6.3"},
{compiler, "ERTS CXC 138 10", "6.0.3"},
{inets, "inets CXC 138 49", "6.2"},
{rabbit, "RabbitMQ", "3.6.1"},
{Mnesia, "Mnesia CXC 138 12", "4.13.3"},
{rabbit_common,[], "3.6.1"},
{Xmerl, "XML parser", "1.3.10"},
{Os_mon, "CPO CXC 138 46", "2.4"},
{Ranch, "Socket acceptor pool for TCP protocols.", "1.2.1"},
{SASL, "SASL CXC 138 11", "2.7"},
{stdlib, "ERTS CXC 138 10", "2.8"},
{kernel, "ERTS CXC 138 10", "4.2"}]},
{Os,{unix,linux}},
{erlang_version,
"ERLANG/OTP [erts-7.3] [source] [64-bit] [smp:8:8] [async-threads:64] [hipe] [kernel-poll:true]\n"},
{Memory,
[{total,64111264},
{connection_readers,0},
{connection_writers,0},
{connection_channels,0},
{connection_other,2808},
{queue_procs,2808},
{queue_slave_procs,0},
{plugins,367288},
{other_proc,19041296},
{mnesia,61720},
{mgmt_db,158696},
{msg_index,47120},
{other_ets,1372440},
{binary,128216},
{code,27368230},
{atom,992409},
{other_system,14568233}]},
{alarms,[]},
{listeners,[{clustering,25672, "::"},{amqp,5672, "::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,6556241100},
{disk_free_limit,50000000},
{disk_free,37431123968},
{file_descriptors,
[{total_limit,65435},
{total_used,2},
{sockets_limit,58889},
{sockets_used,0}]},
{processes,[{limit,1048576},{used,204}]},
{run_queue,0},
{uptime,412681},
{kernel,{net_ticktime,60}}]

To close the service:

[[email protected] sbin]#./rabbitmqctl Stop shutdown Service
Stopping and halting node [email protected] ...

4. Configure the Web plugin

Create a directory first, or you may have an error:

Mkdir/etc/rabbitmq


Then enable the plugin:

./rabbitmq-plugins Enable Rabbitmq_management

Configuring the Linux Port 15672 Web management 5672 AMQP Port
Then visit http://localhost:15672 to

Default User Guest Password guest

5. Remote Access Configuration

The default webpage is not allowed to access, you need to add a user to modify the permissions, the code is as follows:

Add User: Rabbitmqctl add_user jxd jxd

Add Permissions: Rabbitmqctl set_permissions-p "/" jxd ". *". * "". * "

Modify the user role Rabbitmqctl set_user_tags jxd Administrator

 It can then be accessed remotely, and then directly configure user rights and other information. (Firewall off)

  

6. RABBITMQ Common Commands

Add_user <UserName> <Password>

Delete_user <UserName>

Change_password <UserName> <NewPassword>

List_users

Add_vhost <VHostPath>

Delete_vhost <VHostPath>

list_vhostsset_permissions [-P <vhostpath>] <UserName> <Regexp> <Regexp> <Regexp>

clear_permissions [-P <vhostpath>] <UserName>

list_permissions [-P <vhostpath>]

List_user_permissions <UserName>

list_queues [-P <vhostpath>] [<queueinfoitem> ...]

list_exchanges [-P <vhostpath>] [<exchangeinfoitem> ...]

list_bindings [-P <vhostpath>]

List_connections [<connectioninfoitem> ...]

Linux ct6.5 Installation RABBITMQ

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.