CENTOS7 RABBITMQ System Deployment

Source: Internet
Author: User

CentOS7

1. Installation system

Infrastructure server: Java platform, Linux Remote management, development tools

2. Open the network connection:

(1) cd/etc/sysconfig/network-scripts/#进入网络配置文件目录

(2) vi ifcfg-eno16777736 #编辑配置文件, modify the following content

(3) Change onboot from No to Yes

(4) Exit Edit

(5) Service Network restart

3. Turn off SELinux

(1) Setenforce 0

(2) Vi/etc/sysconfig/selinux

Change the line inside to

Selinux=disabled

4. Installing Erlang

Su-c ' RPM-UVH http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm '

sudo yum install Erlang

Check whether the installation is good:

[Email protected]/]# Erl

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

5, Installation 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. Increase User

# rabbitmqctl Add_user xyt XYT

# rabbitmqctl Set_user_tags XYT Administrator

9, Installation Pika

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

# python get-pip.py

# pip Install Pika

CENTOS7 RABBITMQ System Deployment

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.