Last active
September 8, 2021 04:42
-
-
Save PraneethKarnena/67563f28bcfe22c28999b71269be3195 to your computer and use it in GitHub Desktop.
A list of bash commands to set up RabbitMQ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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