RabbitMQ server install

Install (Ubuntu/Debian)
PackageCloud RabbitMQ repository instructions
Or checkout how to install in other systems

1
apt-get install rabbitmq-server

Add a new admin user (I don’t like the default guest user, and you can only access it within localhost since 3.3.0)

1
2
3
rabbitmqctl add_user admin your_password # use any username/password
rabbitmqctl set_user_tags admin administrator # tag as an administrator to grant full acess
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

Enable web management panel

1
rabbitmq-plugins enable rabbitmq_management

Then checkout your http://host.to.rabbimq.com:15672/

If got any connection problam, make sure rabbit not blocking by ufw

1
2
sudo ufw allow 5672
sudo ufw allow 15672

Change file descriptors limits to 4096

/etc/rabbitmq/rabbitmq-env.conf
1
ulimit -S -n 4096

Chane disk free limit

/etc/rabbitmq/rabbitmq.config
1
2
3
[
{rabbit, [{disk_free_limit, "64GB"}]}
].

Show current configs

1
rabbitmqctl status