下载erlang-21.3-1.el7.x86_64.rpm、rabbitmq-server-3.8.8-1.el7.noarch.rpm
1、解压erlang-21.3-1.el7.x86_64.rpm
rpm -ivh erlang-21.3-1.el7.x86_64.rpm
2、安装erlang
yum install -y erlang
3、查看erlang版本号
erl -v
4、安装socat
yum install -y socat
5、解压rabbitmq-server-3.8.8-1.el7.noarch.rpm
rpm -ivh rabbitmq-server-3.8.8-1.el7.noarch.rpm
6、安装rabbitmq
yum install rabbitmq-server -y
7、启动rabbitmq
systemctl start rabbitmq-server
systemctl status rabbitmq-server
systemctl stop rabbitmq-server
systemctl enable rabbitmq-server
rabbitmq-plugins enable rabbitmq_management
授权账号和密码
rabbitmqctl add_user admin 123
rabbitmqctl set_user_tags admin administrator
set_permissions [-p <vhostpath>] <user> <conf> <write> <read>
rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
用户 user_admin 具有/vhost1 这个 virtual host 中所有资源的配置、写、读权限
rabbitmqctl list_users
关闭应用的命令为
rabbitmqctl stop_app
清除的命令为
rabbitmqctl reset
重新启动命令为
rabbitmqctl start_app