Install rabbitmq 3.3 on centos 7

Source: Internet
Author: User
Tags rabbitmq

1. Install the Erlang language environment

Install dependency files

#yum install ncurses-devel

Go to http://www.erlang.org/download.html select Source File Download

wget http://www.erlang.org/download/ otp_src_17.1.tar.gz
tar zxvf  otp_src_17.1.tar.gz
CD otp_src_17.1 read the hoto/install. md File
#./configure   #make && make install 

After the installation is complete, run ERL to check whether eshell can be opened and exit with 'halt (). '. Pay attention to the following vertex number, which is the Erlang Terminator.

[[Email protected] SRC] # ERL
Erlang/OTP 17 [erts-6.1] [Source] [64-bit] [async-threads: 10] [hipe] [kernel-Poll: false]

Eshell v6.1 (abort with ^ g)
2> 9 + 3.
12
3> halt ().

2. Install rabbitmq
Install the dependency file:

yum install xmlto
Go to http://www.rabbitmq.com/download.htmland select the latest source code package.

# Wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.3.4/rabbitmq-server-3.3.4.tar.gz

# Tar zxvf rabbitmq-server-3.3.4.tar.gz

# Cd rabbitmq-server-3.3.4

# Make target_dir =/usr/rabbitmq sbin_dir =/usr/rabbitmq/sbin man_dir =/usr/rabbitmq/man doc_install_dir =/usr/rabbitmq/doc

# Make target_dir =/usr/rabbitmq sbin_dir =/usr/rabbitmq/sbin man_dir =/usr/rabbitmq/man doc_install_dir =/usr/rabbitmq/DOC install

3. Start rabbitmq-Server

Run rabbitmq:

# /usr/rabbitmq/sbin/rabbitmq-server  -detached

View the rabbitmq status:

# /usr/rabbitmq/sbin/rabbitmqctl status

Disable rabbitmq:

#/Usr/rabbitmq/sbin/rabbitmqctl stop

4. Check the startup status of the rabbitmq service and enable the corresponding management plug-in of rabbitmq.

[[Email protected] sbin] #./rabbitmqctl status
Status of node [email protected]...
[{Pid, 35112 },
{Running_applications, [{rabbit, "rabbitmq", "3.3.4 "},
{OS _mon, "CPO CXC 138 46", "2.2.15 "},
{Xmerl, "XML Parser", "1.3.7 "},
{Mnesia, "mnesia CXC 138 12", "4.12.1 "},
{SASL, "sasl cxc 138 11", "2.4 "},
{Stdlib, "ERTs CXC 138 10", "2.1 "},
{Kernel, "ERTs CXC 138 10", "3.0.1"}]},
{OS, {UNIX, Linux }},
{Erlang_version, "Erlang/OTP 17 [erts-6.1] [Source] [64-bit] [async-threads: 30] [hipe] [kernel-Poll: true] \ n "},
{Memory, [{total, 35218336 },
{Connection_procs, 2728 },
{Queue_procs, 5456 },
{Plugins, 0 },
{Other_proc, 13339072 },
{Mnesia, 57552 },
{Mgmt_db, 0 },
{Msg_index, 33968 },
{Other_ets, 708832 },
{Binary, 30112 },
{Code, 16881166 },
{Atom, 654217 },
{Other_system, 3505233}]},
{Alarms, []},
{Listeners, [{clustering, 25672, ":" },{ amqp, 5672, ":"}]},
{Vm_memory_high_watermark, 0.4 },
{Vm_memory_limit, 769332019 },
{Disk_free_limit, 50000000 },
{Disk_free, 45550653440 },
{File_descriptors, [{total_limit, 924 },
{Total_used, 3 },
{Sockets_limit, 829 },
{Sockets_used, 1}]},
{Processes, [{limit, 1048576}, {used, 124}]},
{Run_queue, 0 },
{Uptime, 2182}]
... Done.
[[Email protected] sbin] #./rabbitmq-plugins list
[] Amqp_client 3.3.4
[] Cowboy 0.5.0-rmq3.3.4-git4b93c2d
[] Eldap 3.3.4-gite309de4
[] Mochiweb 2.7.0-rmq3.3.4-git680dba8
[] Rabbitmq_amqp1_0 3.3.4
[] Rabbitmq_auth_backend_ldap 3.3.4
[] Rabbitmq_auth_mechanic ism_ssl 3.3.4
[] Rabbitmq_consistent_hash_exchange 3.3.4
[] Rabbitmq_federation 3.3.4
[] Rabbitmq_federation_management 3.3.4
[] Rabbitmq_management 3.3.4
[] Rabbitmq_management_agent 3.3.4
[] Rabbitmq_management_visualiser 3.3.4
[] Rabbitmq_mqtt 3.3.4
[] Rabbitmq_shovel 3.3.4
[] Rabbitmq_shovel_management 3.3.4
[] Rabbitmq_stomp 3.3.4
[] Rabbitmq_test 3.3.4
[] Rabbitmq_tracing 3.3.4
[] Rabbitmq_web_dispatch 3.3.4
[] Rabbitmq_web_stomp 3.3.4
[] Rabbitmq_web_stomp_examples 3.3.4
[] Sockjs 0.3.4-rmq3.3.4-git3132eb9
[] Webmachine 1.10.3-rmq3.3.4-gite9359c7
[[Email protected] sbin] #
Run the following command to add the user admin and password admin.

[[Email protected] sbin] #./rabbitmqctl add_user admin Admin
Creating user "admin "...
... Done.
[[Email protected] sbin] #./rabbitmqctl set_user_tags admin administraotr
Setting tags for user "admin" to [administraotr]...
... Done.
[[Email protected] sbin] #./rabbitmqctl list_users
Listing users...
Admin [administraotr]
Guest [administrator]
... Done.

. Net rabbitmq practices [configuration]

. Net rabbitmq practices [Example]

. Net rabbitmq practices [WCF release]

. Net rabbitmq practices [practice]

Rabbitmq C # tutorial

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.