In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how the process of installing rabbitmq in Linux is, and the content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
A recent installation of the rabbitmq service also encountered some problems, so I would like to make a note.
First, installation preparation
System: Centos 6.5
Erlang version: 19.3
Rabbitmq version: 3.6.10
Note:
1. The version of erlang installed must match the version of rabbitmq, otherwise various problems may occur during installation. To avoid pitfalls, download the matching version and install it. Refer to the official website for the specific version:
Https://www.rabbitmq.com/which-erlang.html
Download 2.erlang and rabbitmq at the following address:
Erlang: http://erlang.org/download/
Rebbitmq: https://www.rabbitmq.com/releases/rabbitmq-server/
Note: it is best to download according to the matching version of the official website.
Second, install erlang
1. Create the installation directory:
[root@local ~] # mkdir / data/erlang
two。 Upload the erlang source code package to the server and decompress it:
[root@local ~] # cd / data
[root@local data] # ls
Otp_src_19.3.tar.gz
[root@local data] # tar-xvf otp_src_19.3.tar.gz
[root@local data] # ls
Otp_src_19.3otp_src_19.3.tar.gz
3. Install the dependency packages required for erlang
[root@local data] # yum-y install ncurses ncurses-base ncurses-devel ncurses-libs ncurses-static ncurses-term openssl-devel zlib-devel make gcc gcc-c++ unixODBC unixODBC-devel
4. Compile erlang
[root@local data] # cd otp_src_19.3
[root@local otp_src_19.3] # / configure-- prefix=/data/erlang-- with-ssl-enable-threads-enable-smmp-support-enable-kernel-poll-- enable-hipe-- without-javac
Note: during the compilation process, the compilation may fail because of the lack of dependency packages. You can install the corresponding dependency packages according to the prompts. The end of a successful compilation is shown as follows:
5. Install erlang
[root@local otp_src_19.3] # make & & make install
This step will take longer.
6. Create a soft connection to the system command folder to ensure that the system invokes the erlang version of this installation correctly, this step is very important!
[root@local otp_src_19.3] ln-s / data/erlang/bin/erl / usr/local/bin/erl
7. Test erlang version 19.3 installed successfully
[root@local ~] # cd / usr/local/bin
[root@local] # erl-v
8. Modify the environment variable to set the environment variable of erlang
[root@local ~] # vim / etc/profile
# add or modify as follows
Export ERLANG_HOME=/data/erlang
Export PATH=$ERLANG_HOME/bin:$PATH
[root@local ~] # source / etc/profile
Third, install rabbitmq
one. Upload the rabbitmq source code package to the server. This time, the version is 3.6.10 (consistent with erlang version). Create the installation path and decompress it.
[root@local ~] # cd / data
[root@local data] # mkdir rabbitmq
[root@local data] # tar-xvf rabbitmq-server-generic-unix-3.6.10.tar.xz
[root@local data] ls
Otp_src_19.3otp_src_19.3.tar.gz
Rabbitmq_server-3.6.10rabbitmq-server-generic-unix-3.6.10.tar.xz
two. Move the extracted package to the installation directory
[root@local data] # mv rabbitmq_server-3.6.10 / data/rabbitmq/rabbitmq_server-3.6.10
[root@local data] # cd rabbitmq
[root@local rabbitmq] ls
Rabbitmq_server-3.6.10
4. Start rabbitmq
[root@local rabbitmq] # cd rabbitmq_server-3.6.10
[root@local rabbitmq_server-3.6.10] cd sbin
[root@local sbin]. / rabbitmq-server
RabbitMQ 3.6.10. Copyright (C) 2007-2017 Pivotal Software, Inc.
# Licensed under the MPL. See http://www.rabbitmq.com/
#
# Logs: / data/rabbitmq_server-3.6.10/var/log/rabbitmq/rabbit@localhost.log
# / opt/rabbitmq_server-3.6.10/var/log/rabbitmq/rabbit@localhost-sasl.log
#
Starting broker...
Completed with 0 plugins.
5. The above startup method can be started directly in the foreground or in the background:
. / rabbitmq-server-detached
Open the plug-in management page:
. / rabbitmq-plugins enable rabbitmq_management
Shut down the service
. / rabbitmqctl stop
IV. Login configuration after startup
Create the user admin and set the password to 123456:
[root@local sbin] #. / rabbitmqctl add_user admin 123456
Creating user "admin"
[root@local sbin] #. / rabbitmqctl set_user_tags admin administrator
Setting tags for user "admin" to [administrator]
Assign admin user rights
[root@local sbin] #. / rabbitmqctl set_permissions-p / admin ". *"
Setting permissions for user "admin" in vhost "/"
Open the plug-in management page
[root@local sbin] #. / rabbitmq-plugins enable rabbitmq_management
Installation completed login test
Then enter the address in the browser to enter the management page
Http://192.168.140.128:15672/#/
If there is a firewall before login, the port number of the firewall needs to be enabled:
15672
25672
5672
4369
5671
On Linux installation rabbitmq process is how to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.