linux 下rabbitmq 安装

准备工作:

erlang环境  otp_src_19.0.tar.gz

rabbitmq   abbitmq-server-generic-unix-3.6.5.tar.xz

# yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel
# yum -y install make gcc gcc-c++ kernel m4 ncurses openssl
#解压otp 包
tar -zxvf otp_src_19.0.tar.gz
cd otp_src_19.0
#erlang 环境安装
./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac
make
make install
#配置环境变量
vi /etc/profile
ERLANG_HOME=/usr/local/erlang
PATH=$ERLANG_HOME/bin:$PATH

安装rabbitmq-server
#解压 rabbitmq 包
tar -xvf rabbitmq-server-generic-unix-3.6.5.tar.xz

cd ./rabbitmq_server-3.6.5

cd sbin/

启动

./rabbitmq-server -detached

启用web管理界面
./rabbitmq-plugins enable rabbitmq_management

添加用户

./rabbitmqctl add_user test test

设置权限

./rabbitmqctl set_user_tags test administrator

./rabbitmqctl list_users

./rabbitmqctl set_permissions -p / test '.*' '.*' '.*'

测试

wget http://127.0.0.1:15672/

上一篇:FastReport 动态修改连接字符串


下一篇:HTML5 API——无刷新更新地址 history.pushState/replaceState 方法