Install RabbitMQ on OpenBSD

# pkg_add rabbitmq
# rcctl start rabbitmq
# cp /var/rabbitmq/.erlang.cookie /root/
# rcctl restart rabbitmq
# rabbitmq-plugins enable rabbitmq_management
# rabbitmqctl add_user full_access s3crEt
# rabbitmqctl set_user_tags full_access administrator

http://localhost:15672/
login: full_access
pasword: s3crEt

Troubleshooting

Check status

# rabbitmqctl status

Restart

# rcctl restart rabbitmq

Run attached

# rabbitmq-server

Check logs

# tail -f /var/log/rabbitmq/*

Set pemissions

# chown -R  _rabbitmq:_rabbitmq /var/log/rabbitmq /var/rabbitmq

Kill process

# pkill rabbitmq

Uninstall rabbitmq

# rcctl stop rabbitmq
# pkill erl_child_setup
# pkg_delete rabbitmq
# pkg_delete -a
# rm -rf .erlang.cookie /var/rabbitmq /var/log/rabbitmq /etc/rabbitmq
# userdel _rabbitmq
# groupdel _rabbitmq

© RGZ.EE OÜ