Rabbitmq 安装

2019-12-11  本文已影响0人  接着奏乐接着舞S

1.安装Erlang

./configure --prefix=/usr/local/erlang
make
make install

2.安装RabbitMQ

xz -d rabbitmq-server-generic-unix-3.6.9.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.6.9.tar
./rabbitmq-plugins enable rabbitmq_management
./rabbitmq-server -detached

关闭防火墙,否则非本地设备无法访问RabbitMQ服务

./rabbitmqctl add_user root 123456
./rabbitmqctl set_user_tags root administrator
./rabbitmqctl list_users
./rabbitmqctl set_permissions -p / root ".*" ".*" ".*"
./rabbitmqctl status
rabbitmqctl stop :停止rabbitmq
rabbitmq-server restart : 重启rabbitmq

因为rabbitmqctl是没有restart命令的,所以重启rabbitmq服务需要这么两步

上一篇下一篇

猜你喜欢

热点阅读