直接 apt
安装
1 2 3 4 5 6 7 8 9 10
| sudo apt-get update -y
sudo apt-get install -y erlang-base \ erlang-asn1 erlang-crypto erlang-eldap erlang-ftp erlang-inets \ erlang-mnesia erlang-os-mon erlang-parsetools erlang-public-key \ erlang-runtime-tools erlang-snmp erlang-ssl \ erlang-syntax-tools erlang-tftp erlang-tools erlang-xmerl
sudo apt-get install rabbitmq-server -y --fix-missing
|
安装 erlang
deb安装
下载地址
1 2 3 4 5
| mkdir ~/tools && cd ~/tools wget https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_22.2-1~ubuntu~xenial_amd64.deb apt install -y libncurses5 libwxbase3.0-0v5 libwxgtk3.0-gtk3-0v5 libsctp1 libssl-dev openssl apt install -y libwxgtk3.0-gtk3-0v5 sudo dpkg -i esl-erlang_22.2-1_ubuntu_xenial_amd64.deb
|
RabbitMQ安装
deb安装
1 2 3 4 5 6 7
| mkdir adduser rabbitmq su rabbitmq mkdir ~/tools && cd ~/tools apt -y install socat logrotate init-system-helpers adduser wget wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.2/rabbitmq-server_3.8.2-1_all.deb sudo dpkg -i rabbitmq-server_3.8.2-1_all.deb
|
启动
1 2 3 4 5 6
| systemctl stop multipathd.socket systemctl disabled multipathd.socket sudo systemctl start rabbitmq-server sudo systemctl status rabbitmq-server sudo systemctl enable rabbitmq-server
|
本文地址: https://github.com/maxzhao-it/blog/post/48237f93/