Install RabbitMQ by adding the repo to apt sources.
sudo apt-key adv --keyserver "hkps.pool.sks-keyservers.net" --recv-keys "0x6B73A36E6026DFCA"sudo apt-get install apt-transport-httpssudo tee /etc/apt/sources.list.d/bintray.rabbitmq.list <<EOF
deb https://dl.bintray.com/rabbitmq-erlang/debian bionic erlang-21.x
deb https://dl.bintray.com/rabbitmq/debian bionic main
EOFsudo apt-get update -ysudo apt-get install rabbitmq-server -y --fix-missingrabbitmq-plugins enable rabbitmq_auth_backend_http
rabbitmq-plugins enable rabbitmq_management
rabbitmq-plugins enable rabbitmq_web_stompcat > /etc/rabbitmq/rabbitmq.config
[
{rabbit, [{auth_backends, [rabbit_auth_backend_http, rabbit_auth_backend_internal]},
{loopback_users, []}]} ,
{rabbitmq_auth_backend_http,
[{http_method, post},
{user_path, "http://localhost:8062/api/v1/verify_user"},
{vhost_path, "http://localhost:8062/api/v1/verify_vhost"},
{resource_path, "http://localhost:8062/api/v1/verify_resource"},
{topic_path, "http://localhost:8062/api/v1/verify_topic"}]
}
].rabbitmqctl add_user sbcsadmin F9GTj30ZNY1sQgZg66qPn02ZxnFWuJxUQGH9
rabbitmqctl set_user_tags sbcsadmin administrator
rabbitmqctl set_permissions sbcsadmin ".*" ".*" ".*"rabbitmqctl add_user sbcsfaw HpQM7WS4bnxBTUhnPJFdq9xk72AtTm5FVZsB
rabbitmqctl set_permissions sbcsfaw "" "sbcs.*" "sbcs.*"systemctl restart rabbitmq-server