Skip to content

Instantly share code, notes, and snippets.

@PraneethKarnena
Last active September 8, 2021 04:42
Show Gist options
  • Save PraneethKarnena/67563f28bcfe22c28999b71269be3195 to your computer and use it in GitHub Desktop.
Save PraneethKarnena/67563f28bcfe22c28999b71269be3195 to your computer and use it in GitHub Desktop.
A list of bash commands to set up RabbitMQ
# Install rabbitmq
sudo apt install -y rabbitmq-server
# Set memory limit
# sudo nano /etc/rabbitmq/rabbitmq.conf
vm_memory_high_watermark.absolute = 700MiB
# Enable management plugin
rabbitmq-plugins enable rabbitmq_management
# Visit http://{HOST}:15672/
# Restart for the changes to take effect
sudo service rabbitmq-server restart
# Delete guest user
rabbitmqctl delete_user guest
# Create user
rabbitmqctl add_user "username" "password"
# Set V-host permissions
rabbitmqctl set_permissions -p "custom-vhost" "username" ".*" ".*" ".*"
# Grant admin privileges
rabbitmqctl set_user_tags username administrator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment