How to stop RabbitMQ starting on Ubuntu bootup?

I have installed RabbitMQ on Ubuntu, but I want to only start it when needed manually, not have it load automatically upon boot.


Solution 1:

Use update-rc.d:

update-rc.d -f rabbitmq-server remove

Solution 2:

With Ubuntu 15.10 (using systemd), I used systemctl:

sudo systemctl disable rabbitmq-server