1, before installation rabbitmq to prepare the basic environment
yum install build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ kernel-devel m4 ncurses-devel tk tc xz tcp_wrappers
2, need to download the installation file as follows
Erlang ##
wget www.rabbitmq.com/releases/erlang/erlang-18.3-1.el7.centos.x86_64.rpm
## keys pack
wget http://repo.iotti.biz/CentOS/7/x86_64/socat-1.7.3.2-5.el7.lux.x86_64.rpm
## rabbitmq
wget www.rabbitmq.com/releases/rabbitmq-server/v3.6.5/rabbitmq-server-3.6.5-1.noarch.rpm
Precautions:
erlang version will affect rabbitmq installation, there are two versions of control
View controls address: http://www.rabbitmq.com/which-erlang.html
3, after downloading the installation file, followed by executing the following command
rpm -ivh erlang-18.3-1.el7.centos.x86_64.rpm
rpm -ivh socat-1.7.3.2-1.1.el7.x86_64.rpm
rpm -ivh rabbitmq-server-3.6.5-1.noarch.rpm
4, simply change the configuration file
we /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbit.app
Change is as follows. So far, rabbitmq has been successfully installed
5, the basic command to start the operation of rabbitmq
1 Start rabbitmq: rabbitmq-service start
2 Close rabbitmq: rabbitmq-service stop
3 Start Monitoring Manager: rabbitmq-plugins enable rabbitmq_management
4 Close Monitoring Manager: rabbitmq-plugins disable rabbitmq_management
5 See all queues: rabbitmqctl list_queues
6 Clear all queues: rabbitmqctl reset
7 Close the application: rabbitmqctl stop_app
8 Start the application: rabbitmqctl start_app
6, start rabbitmq, start monitoring manager. And open the 15672 port after, into your browser to access the administration page, account numbers, passwords are guest