1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# 下载 rabbitmq-server
# https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.14/rabbitmq-server-generic-unix-3.7.14.tar.xz
# 下载对应版本的 erlang
# https://github.com/rabbitmq/erlang-rpm/releases/download/v21.3.8.21/erlang-21.3.8.21-1.el7.x86_64.rpm
rpm -ivh erlang-21.3.8.21-1.el7.x86_64.rpm
# 查看 erlang 版本
erl -version
xz -d rabbitmq-server-generic-unix-3.7.14.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.7.14.tar
# 修改 hosts 文件, 追加主机名称与本机IP的关系, 主机名称使用 hostname 命令查看
# vi /etc/hosts
# 127.0.0.1 c12
# 启动 rabbitmq
./rabbitmq_server-3.7.14/sbin/rabbitmq-server -detached
# 查看状态
./rabbitmq_server-3.7.14/sbin/rabbitmqctl status
|