RabbitMQ安装部署
本文主要介绍rabbitmq-server-3.6.12的安装部署
# 检查是否已经安装旧版本的软件
rpm -qa|grep erlang rpm -qa|grep rabbitmq
# 如果之前yum安装过rabbitmq可能会有旧版本的软件,需要卸载掉再安装
yum remove erlang-R14B erlang-erts -y
# 配置rabbitmq所需要的yum源(epel源)
su -c 'rpm -Uvh http://download.Fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'
# 安装指定版本的rabbitmq
wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el6.x86_64.rpm wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.12/rabbitmq-server-3.6.12-1.el6.noarch.rpm yum install erlang-19.0.4-1.el6.x86_64.rpm -y yum install rabbitmq-server-3.6.12-1.el6.noarch.rpm -y
# 启动rabbitmq并配置开机自启动
service rabbitmq-server start ps -ef|grep rabbitmq chkconfig rabbitmq-server on chkconfig --list rabbitmq-server
# 设置rabbitmq启用的功能
rabbitmq-plugins enable rabbitmq_management service rabbitmq-server restart
# 默认的用户密码为guest,可以创建新的rabbitmq用户并授权
rabbitmqctl add_user admin 123456 rabbitmqctl set_user_tags admin administrator rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
# 创建其他用户nice
rabbitmqctl add_user nice 123456 rabbitmqctl add_vhost nice rabbitmqctl set_user_tags nice administrator rabbitmqctl set_permissions -p "nice" nice ".*" ".*" ".*"
可以访问:http://IP:15672
完毕
RabbitMQ 的详细介绍:请点这里
RabbitMQ 的下载地址:请点这里
相关推荐
OnMyHeart 2020-06-17
waitzkj 2020-06-09
zhuxue 2020-10-14
shenzhenzsw 2020-10-09
shyoldboy 2020-09-27
leihui00 2020-09-16
lishijian 2020-08-17
程序员伊成 2020-08-06
ljcsdn 2020-07-27
waitzkj 2020-07-25
powrexly 2020-07-20
liym 2020-07-20
zhoucheng0 2020-07-19
shenzhenzsw 2020-07-18
woaishanguosha 2020-07-18
waitzkj 2020-07-18
zhoucheng0 2020-07-08
json0000 2020-07-04