我只是rabbitmq和erlang官网的搬运工,把他们两个官网的安装教程组合到一起,弄了这个脚本
脚本包括 erlang安装和rabbitmq安装
erlang官网安装教程
RabbitMQ安装教程
vim rabbitmq把下面内容粘贴进去
1
2
3
4
5
6
7
8
9
10
11 1#!/bin/bash
2wget https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
3sudo dpkg -i erlang-solutions_1.0_all.deb
4sudo rm -rf erlang-solutions_1.0_all.deb
5sudo apt-get update
6sudo apt-get install erlang
7wget -O - "https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey" | sudo apt-key add -
8curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.deb.sh | sudo bash
9sudo apt-get install rabbitmq-server
10
11
然后 chmod +x rabbitmq给脚本可执行权限
最后 ./rabbitmq即可