linux CentOS 7 安裝 RabbitMQ Erlang 21.0

1. 安裝erlang java

安裝依賴環境c++

yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-develweb

下載最新 Erlang 21.0shell

wget http://erlang.org/download/otp_src_21.0.tar.gzasync

解壓spa

tar -xvzf otp_src_21.0.tar.gzunix

配置
./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javacserver

makeblog

make installrabbitmq

配置/etc/profile

ERLANG_HOME=/usr/local/erlang
PATH=$PATH:$JAVA_HOME/bin:$ERLANG_HOME/bin

 

 

 

使其生效  

source /etc/profile

echo $PATH

 

檢驗erl

[root@iZ25sabz8p5Z sbin]# erl
Erlang/OTP 19 [erts-8.0] [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]


Eshell V8.0  (abort with ^G)

 

2. 安裝 rabbitmq

wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.3/rabbitmq-server-generic-unix-3.6.3.tar.xz

xz -drabbitmq-server-generic-unix-3.6.3.tar.xz

tar -xvfrabbitmq-server-generic-unix-3.6.3.tar

cd ./rabbitmq_server-3.6.3

cd sbin/

啓用web管理界面

./rabbitmq-plugins enable rabbitmq_management

 

啓動

./rabbitmq-server -detached

添加用戶

./rabbitmqctl add_user admin 111111

設置權限

./rabbitmqctl set_user_tags admin administrator

相關文章
相關標籤/搜索