linux下部署rabbitmq

一、安装erlang

依赖包:
yum -y install gcc ncurses ncurses-base ncurses-devel
yum -y instal ncurses-libs ncurses-static ncurses-term ocaml-curses ocaml-curses-devel
yum -y instal openssl-devel zlib-devel openssl-devel perl xz xmlto kernel-devel m4


1、下载otp_src_19.3.tar.gz
wget http://www.erlang.org/download/otp_src_19.3.tar.gz
2、tar xvf otp_src_19.3.tar.gz
3、./configure --prefix=/usr/local/erlang
--with-ssl --enable-threads --enable-smp-support
--enable-kernel-poll --enable-hipe --without-javac
4、make && make install

5、配置erlang环境:

vi /etc/profile

export PATH=$PATH:/usr/local/erlang/bin

source /etc/profile

二、安装rabbitmq

1、下载rabbitmq-server-generic-unix-3.6.5.tar.xz
2、tar xvf rabbitmq-server-generic-unix-3.6.5.tar.xz
3、mv rabbitmq_server-3.6.5/ /usr/local/rabbitmq
4、启动:
#启动rabbitmq服务
/usr/local/rabbitmq/sbin/rabbitmq-server
#后台启动
/usr/local/rabbitmq/sbin/rabbitmq-server -detached
#关闭rabbitmq服务
/usr/local/rabbitmq/sbin/rabbitmqctl stop

ps -ef | grep rabbit 和 kill -9 xxx

#开启插件管理页面
/usr/local/rabbitmq/sbin/rabbitmq-plugins enable rabbitmq_management

#创建用户
/usr/local/rabbitmq/sbin/rabbitmqctl add_user rabbitadmin 123456
usr/local/rabbitmq/sbin/rabbitmqctl set_user_tags rabbitadmin administrator
5、登录
#WEB登录
http://10.10.3.63:15672
用户名:rabbitadmin
密码:123456

posted @ 2017-05-08 18:45  龍龘龖  阅读(438)  评论(0编辑  收藏  举报