rabbitmq部署筆記
阿新 • • 發佈:2018-01-04
config -s open generic XML 用戶 glibc ble erl yum install gcc glibc-devel make ncurses-devel openssl-devel xmlto
cd /home/software
tar xf otp_src_20.1.tar.gz
cd otp_src_20.1
./configure --prefix=/home/cloud/erlang
make && make install
測試
cd /home/cloud/erlang/bin
erl
mq安裝
cd /home/software
tar xf rabbitmq-server-generic-unix-3.6.10.tar.gz
mv rabbitmq_server-3.6.10 /home/cloud/
cd /home/cloud/rabbitmq_server-3.6.10/sbin
啟動rabbitmq:
./rabbitmq-server -detached
查看狀態:
./rabbitmqctl status
停止:
./rabbitmqctl stop
rabbitmq啟動管理界面
./rabbitmq-plugins enable rabbitmq_management
默認用戶是guest密碼是guest 不讓登錄
增加管理用戶
rabbitmqctl add_user test01 test01
rabbitmqctl set_permissions -p "/" test01 ".*" ".*" ".*"
rabbitmqctl set_user_tags test01 administrator
然後訪問http://IP:15672即可
然後用test01 登錄
rabbitmq部署筆記