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