环境centos7
1、安装 socat
yum install socat
2、更新erlang
2.1、卸载旧版本
yum remove erlang
2.2、下载新版本erl
wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el7.centos.x86_64.rpm
2.3、安装erl
rpm -ivh erlang-19.0.4-1.el7.centos.x86_64.rpm
3、安装rabbitmq
3.1、下载
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.10/rabbitmq-server-3.6.10-1.el7.noarch.rpm
3.2、安装rabbitmq
rpm -ivh rabbitmq-server-3.6.10-1.el7.noarch.rpm
3.3、启动(任选)
1、systemctl start rabbitmq-server
2、rabbitmq-server -detached //启动rabbitmq,-detached代表后台守护进程方式启动
3.4、查看状态
rabbitmqctl status
3.5、启用插件
rabbitmq-plugins enable rabbitmq_management
4、添加账号
rabbitmqctl add_user admin admin
//添加权限
rabbitmqctl set_permissions -p /admin".*" ".*" ".*"
rabbitmqctl set_user_tags admin administrator