编写日期:2018-07-17
编写作者:mtsbv110
主机规划:192.168.9.140
RabbitMQ版本:rabbitmq-server-generic-unix-3.6.12.tar.xz
Erlang 版本:otp_src_20.0.tar.gz
安装目录:/usr/local/redis
1、安装编译工具
[root@jetsen-detail-01 local]# yum install -y ncurses ncurses-base ncurses-devel ncurses-libs ncurses-static ncurses-term ocaml-curses ocaml-curses-devel
[root@jetsen-detail-01 local]# yum install -y openssl-devel zlib-devel
[root@jetsen-detail-01 local]# yum install -y make ncurses-devel gcc gcc-c++ unixODBC unixODBC-devel openssl openssl-devel
- 安装erlang
下载erlang:http://erlang.org/download/otp_src_20.0.tar.gz
[root@jetsen-detail-01 local]# tar -zxvf otp_src_20.0.tar.gz
[root@jetsen-detail-01 local]# cd otp_src_20.0/
[root@jetsen-detail-01 otp_src_20.0]# ./configure --prefix=/usr/local/erlang --with-ssl -enable-threads -enable-smmp-support -enable-kernel-poll --enable-hipe --without-javac
[root@jetsen-detail-01 otp_src_20.0]# make && make install
[root@jetsen-detail-01 local]# ln -s /usr/local/erlang/bin/erl /usr/local/bin/erl
[root@jetsen-detail-01 local]# vi /etc/profile
JAVA_HOME=/usr/local/jdk1.7.0_79
ERLANG_HOME=/usr/local/erlang
PATH=$JAVA_HOME/bin:$ERLANG_HOME/bin:$PATH
CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
export PATH JAVA_HOME ERLANG_HOME CLASSPATH
[root@jetsen-detail-01 local]# source /etc/profile
- 安装rabbitmq
http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.12/rabbitmq-server-generic-unix-3.6.12.tar.xz
[root@jetsen-detail-01 local]# yum install -y xz
[root@jetsen-detail-01 local]# xz -d rabbitmq-server-generic-unix-3.6.12.tar.xz
[root@jetsen-detail-01 local]# tar -xvf rabbitmq-server-generic-unix-3.6.12.tar
[root@jetsen-detail-01 local]# mv rabbitmq_server-3.6.12 rabbitmq-3.6.12
开启管理页面的插件
[root@jetsen-detail-01 sbin]# cd /usr/local/rabbitmq-3.6.12/sbin/
[root@jetsen-detail-01 sbin]# ./rabbitmq-plugins enable rabbitmq_management
后台启动rabbitmq server
./rabbitmq-server -detached
关闭rabbitmq server
./rabbitmqctl stop
添加管理员账号
./rabbitmqctl add_user rabbitadmin 123456
./rabbitmqctl set_user_tags rabbitadmin administrator
进入管理页面
15672端口号,输入用户名和密码
在rabbitmq管理界面中创建队列赋权
rabbitmqctl set_permissions -p / rabbitadmin '.*' '.*' '.*'