Centos7 rabbitmq system deployment, centos7rabbitmq

Source: Internet
Author: User

Centos7 rabbitmq system deployment, centos7rabbitmq

CentOS7

1. Install the system

Infrastructure servers: Java platform, Linux Remote Management, and development tools

 

2. Open the network connection:

(1) cd/etc/sysconfig/network-scripts/# enter the network configuration file directory

(2) vi ifcfg-eno16777736 # edit the configuration file, modify the following content

(3) Change onboot from no to yes

(4) Exit editing

(5) service network restart

 

3. Disable selinux.

(1) setenforce 0

(2) vi/etc/sysconfig/selinux

Change the line inside

SELINUX = disabled

 

4. Install Erlang

Su-C' rpm-Uvh restart'

Sudo yum install erlang

Check whether the installation is successful:

[Root @ localhost/] # erl

Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp: 4: 4] [async-threads: 10] [hipe] [kernel-poll: false]

 

5. Install RabbitMQ

(1) download the installation package

Wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.0/rabbitmq-server-3.6.0-1.noarch.rpm

(2) Installation

Rpm -- import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc

Yum install rabbitmq-server-3.6.0-1.noarch.rpm

(3) Enable web management plug-in

Rabbitmq-plugins enable rabbitmq_management

 

6. Start RabbitMQ

Chkconfig rabbitmq-server on

/Sbin/service rabbitmq-server start

 

7. Open the corresponding port

# Firewall-cmd -- permanent -- zone = public -- add-port = 5672/tcp

# Firewall-cmd -- permanent -- zone = public -- add-port = 15672/tcp

# Firewall-cmd -- reload

 

8. Add users

# Rabbitmqctl add_user xyt

# Rabbitmqctl set_user_tags xyt administrator

 

9. Install pika

# Wget https://bootstrap.pypa.io/get-pip.py

# Python get-pip.py

# Pip install pika

 

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.