6

I would like easy installation instructions for RabbitMQ Server on my Pi. I tried a lot of things from various sources and they just don't work. One source even said RabbitMQ Server is pre-installed on Raspbian, which is not the case.

More detailed info about my hardware, OS, Kernel, etc...

pi@raspberrypi:/bin $ *cat /etc/debian_version*  
9.3  
pi@raspberrypi:/bin $ *cat /etc/os-release*  
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi@raspberrypi:/bin $ uname -a
Linux raspberrypi 4.9.59-v7+ #1047 SMP Sun Oct 29 12:19:23 GMT 2017 armv7l GNU/Linux  

pi@raspberrypi:/bin $ *cat /proc/cpuinfo*  
processor   : 0
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xc07
CPU revision    : 5

processor   : 1
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xc07
CPU revision    : 5

processor   : 2
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xc07
CPU revision    : 5

processor   : 3
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm 
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xc07
CPU revision    : 5

Hardware    : BCM2835
Revision    : a01041
2
  • As you are new here I recommend you take the Tour to find out how things work around here. In future I would advise you to post some detail as to what you have specifically tried and the associated outcomes. It makes it much easier to answer questions as it gives other users an idea as to where to begin with providing an answer.
    – Darth Vader
    Commented Mar 7, 2018 at 22:10
  • How much RAM and disk storage did you have on your Raspberry Pi?
    – sivabudh
    Commented Jul 8, 2018 at 16:54

2 Answers 2

10

You can install it with the following command:

sudo apt-get install rabbitmq-server

I found the package name (rabbitmq-server) using apt-cache search:

sudo apt-cache search rabbitmq

You may also want to read the man (manual page - Linux's help system) pages for apt-get and apt-cache commands:

man apt-get and man apt-cache.

1
  • Thanks! That worked. Don’t know why I did t try this simpler method instead of going to the web and getting all sorts of complicated solutions! Commented Mar 7, 2018 at 15:52
5

The approved answer did not work for me with Stretch. If it does work it will give you an older version. I tried a lot of different things to get the latest version and this was the only one I found that worked. From the instructions on this page https://www.rabbitmq.com/install-debian.html

curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.deb.sh | sudo bash sudo apt-get install rabbitmq-server sudo systemctl enable rabbitmq-server sudo systemctl start rabbitmq-server sudo rabbitmq-plugins enable rabbitmq_management

In your web browser go to http://<IP of PI>:15672/

13
  • 1
    It is a very big security hole to run blindly a bash script with root rights coming direct from the internet.
    – Ingo
    Commented Jul 21, 2018 at 7:13
  • 1
    @Ingo I don't think it's particularly rare nor troubling in this case given that the script comes from the package authors anyway. Node.js uses this method too if you want to install a more recent version than what the Debian repos provide. It's worth being wary, but in this case it seems safe and is an official method so nothing to worry about.
    – Aurora0001
    Commented Jul 21, 2018 at 9:05
  • 1
    @Aurora0001 I know comments are not for discussion but if I were a hacker I would scan the internet for such methods to compromise them and I would prefer distinguished authors ...
    – Ingo
    Commented Jul 21, 2018 at 9:17
  • 2
    @MikeKulls Now we have the debate about security and carelessness in the internet :-/ It isn't that I do not trust the author. It is that I don't trust the internet in general. There are professional hackers there. Why do we have so much huge bot nets on the internet with millions of zombies? It is because of the carelessness of the users and the authors. The author has to provide an alternate answer (maybe with a hash?) not I. And to be a comment to improve your answer: I suggest to edit your answer and note to inspect the script before blindly execute it (may not help newbies). EOD.
    – Ingo
    Commented Jul 22, 2018 at 8:57
  • 2
    @Ingo your concern applies to every public repo including github and sf.
    – bvj
    Commented Aug 29, 2018 at 2:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.