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

How to install rabbitMq for centos7

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

Share

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

This article introduces the relevant knowledge of "how to install rabbitMq in centos7". In the operation process of actual cases, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

install erlang

1. Erlang Installation Configuration

Download the installer at http://www.erlang.org/downloads, I chose otp_src_18.3.tar.gz.

Then extract the file:

[root@iZ25e3bt9a6Z rabbitmq]# tar -xzvf otp_src_18.3.tar.gz

[root@iZ25e3bt9a6Z rabbitmq]# cd otp_src_18.3/

Configure installation path compilation code:

[root@iZ25e3bt9a6Z otp_src_18.3]# ./ configure --prefix=/opt/erlang

Execution compilation results:

[root@iZ25e3bt9a6Z otp_src_18.3]# make && make install

After completion, enter/opt/erlang to view the execution results

[root@iZ25e3bt9a6Z rabbitmq]# cd /opt/erlang/

[root@iZ25e3bt9a6Z erlang]# erl

Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V7.3 (abort with ^G)

1>

When the above message appears, the installation is complete. Then type 'halt().' Just quit.

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

#set erlang environment

export PATH=$PATH:/opt/erlang/bin

source /etc/profile makes the file effective

In the process of installing Erlang, you may encounter the following problems, which are generally caused by the lack of corresponding packages in the system. If you lack any packages, you can directly install yum.

Makefile:231: /root/otp_src_R15B/make/x86_64-unknown linux-gnu/otp_ded.mk: No such file

The solution is this: see http://blog.csdn.net/huoyunshen88/article/details/41575875

2. Install rabbitmq

rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc

wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.2/rabbitmq-server-3.6.2-1.noarch.rpm

yum install rabbitmq-server-3.6.2-1.noarch.rpm

Install plugins:

rabbitmq-plugins enable rabbitmq_management

service rabbitmq-server restart

Since guest is a user that can only be accessed locally, we need to add a new user and grant permissions:

Add user:rabbitmqctl add_user admin

Add permissions:rabbitmqctl set_permissions -p "/" admin ".* " ".* " ".* "

modify user role rabbitmqctl set_user_tags admin administrator

Then you can access it remotely, and then you can configure user permissions and other information directly.

This, you can log in through http://ip:15628 using admin admin

"Centos7 how to install rabbitMq" content is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

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