Rabbimq 安装过程,还有踩得坑!centos 安装
一 、安装erlang
1 添加yum 源,在/etc/yum.repos.d 下添加 rabbitmq-erlang.repo,内容如下
# In /etc/yum.repos.d/rabbitmq-erlang.repo [rabbitmq-erlang] name=rabbitmq-erlang baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/20/el/7 gpgcheck=1 gpgkey=https://www.rabbitmq.com/rabbitmq-release-signing-key.asc repo_gpgcheck=0 enabled=1
2 . yum install erlang . 如果顺利的话很快就能暗转完成,也可以直接下载rpm 包安装,建议版本20 ,安装不成功,卸载后再重新安装
二 、安装rabbitmq
1 wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.2/rabbitmq-server-3.7.2-1.el7.noarch.rpm 2 rpm --import https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc 3 yum install rabbitmq-server-3.7.2-1.el7.noarch.rpm 4 rabbitmqctl reset #参考 http://blog.csdn.net/wochunyang/article/details/52524977
三 、启动rabbitmq-server
1 rabbitmq 用户相关操作 2 3 [root@VM_0_7_centos ~]# rabbitmqctl list_users 4 Listing users ... 5 user tags 6 guest [administrator] 7 [root@VM_0_7_centos ~]# rabbitmqctl add_user admin admin 8 Adding user "admin" ... 9 [root@VM_0_7_centos ~]# rabbitmqctl set_user_tags admin administrator 10 Setting tags for user "admin" to [administrator] ... 11 [root@VM_0_7_centos ~]# rabbitmqctl delete_user guest 12 13 # 启动服务 14 [root@VM_0_7_centos ~]# rabbitmq-server start
四、登录http://你的服务器:15672/#/