Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos6.5 install rabbitMQ3.6.6

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Centos6.5 install rabbitMQ3.6.6

1. Install dependency packages

Yum-y install make gcc gcc-c++ kernel-devel M4 ncurses-devel openssl-devel unixODBC unixODBC-devel

two。 Install locale Erlang

2.1 download

Http://erlang.org/download/otp_src_19.2.tar.gz

2.2 installation

Decompression

Tar zxvf otp_src_19.2.tar.gz

Cd otp_src_19.2

Configure'--the installation directory specified by prefix'

/ configure-- prefix=/usr/local/erlang-- with-ssl-- enable-threads-- enable-smmp-support-- enable-kernel-poll-- enable-hipe-- without-javac

-- prefix specifies the installation directory

-- with-ssl supports encrypted communication ssl

-- enable-threads enables asynchronous thread support

-- enable-smmp-support enables symmetric multiprocessing support (short for Symmetric Multi-Processing symmetric multiprocessing architecture)

-- enable-kernel-poll enables Linux kernel poll

-- enable-hipe enables high performance Erlang

-- without-javac

Compilation and installation

Make & & make install

Configure erlang environment variables

Add the following at the end of vim / etc/profile

ERLANG_HOME=/usr/local/erlang

PATH=$ERLANG_HOME/bin:$PATH

Export ERLANG_HOME

Export PATH

Source / etc/profile

Test whether the installation is successful

Erl

1 > EvenN = lists:filter (fun (N)-> N rem 2 = = 0 end,lists:seq (1100)) The following appears in the input

[2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42

44pr 46pr 48jr 50jr 52pr 54pr 56pr 58 |.]

2 > halt (). Quit

3. Install RabbitMQ

3.1download RabbitMQ

Http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-generic-unix-3.6.6.tar.xz

3.2 install RabbitMQ3.6 this version can be used without make or make install decompression

Decompress rabbitmq. The official package is xz, so you need to use the xz command.

Xz-d rabbitmq-server-generic-unix-3.6.6.tar.xz

Xz is decompressed to get .tar package, and then decompressed with tar command

Tar-xvf rabbitmq-server-generic-unix-3.6.6.tar

Move the directory, change the name

Mv rabbitmq_server-3.6.6/ / usr/local/rabbitmq-3.6.6

Open the admin page plug-in

Cd / usr/local/rabbitmq-3.6.6/sbin/

. / rabbitmq-plugins enable rabbitmq_management

3.3 start

Start Rabbit in the background

. / rabbitmq-server-detached

Shut down the service

. / rabbitmqctl stop

3.4 add administrator account

Cd / usr/local/rabbitmq-3.6.6/sbin/

. / rabbitmqctl add_user admin admin123

Assign user label

. / rabbitmqctl set_user_tags admin administrator

View and confirm after creating and assigning roles

Rabbitmqctl list_users

4. Log in to the management interface

Browser input address: http:// server IP address: 15672 /

Username password: admin/admin123

User management

Create user jcp password 654321 role as monitoring

. / rabbitmqctl add_user jcp 654321

. / rabbitmqctl set_user_tags jcp monitoring

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report