Linux installed RabbitMQ demo

RabbitMQ installation demonstration in Linux to VirtualBox virtual machine operating system support

Operating system version CentOS7, pure RabbitMQ is not installed

Install as root

su - root

installation

wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm

rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

yum install epel-release

yum install erlang

wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm

yum install rabbitmq-server-3.6.6-1.el7.noarch.rpm

management

service rabbitmq-server start

service rabbitmq-server status

Installation Management Console

rabbitmq-plugins enable rabbitmq_management

Restart RabbitMQ

service rabbitmq-server stop
service rabbitmq-server start

Access Management Console can check whether the browser in a virtual machine

Open the corresponding port

firewall-cmd --permanent --add-port=15672/tcp
firewall-cmd --permanent --add-port=5672/tcp

View existing virtual hosts and virtual host name enjoyedu increase of

rabbitmqctl list_vhosts
rabbitmqctl add_vhost bysujcs
rabbitmqctl list_vhosts

Increase user named mark and configure administrator roles, increase the appropriate permissions

rabbitmqctl add_user bysujc 123456
rabbitmqctl set_permissions -p bysujcs bysujc '.' '.' '.*'
rabbitmqctl set_user_tags bysujc administrator

To access the local machine, you need to configure port forwarding in a virtual machine

In the local browser, check whether the Access Management Console and run the code test

Note: The default guest user can not log on remotely, unless otherwise configuration parameters.

Guess you like

Origin www.cnblogs.com/soulmatesjc/p/11531012.html