First, install the software ready
RabbitMq Download
Erlang Download
RabbitMq and Erlang version associated address
Second, install windows environment
- Installation Erlang
- RabbitMQ installation
- Start Rabbitmq
- Click on
- Enter the command: rabbitmq-plugins enable rabbitmq_management
- Enter the address in the browser view: http://127.0.0.1:15672/
Use the default account login: guest / guest
Third, install Linux environment
- Software ready
I was relatively slow download time, provide a good Baidu network disk download address: https://pan.baidu.com/s/1ddk62WucGKs8ObKK8wpH7w Password: ehk5 - Installation Erlang environment
#安装依赖
yum install -y gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git
tar -xvf otp_src_22.1.tar.gz
mv otp_src_22.1 erlang
cd erlang
#首先是./configure,检查编译环境并配置安装路径
./configure --prefix=/usr/local/erlang --without-javac
#然后对源代码进行编译
make
#最后开始安装
make install
#配置erlang环境变量
vi /etc/profile
export PATH=$PATH:/user/local/erlang/bin
#保存之后刷新配置文件
source /etc/profile
#创建软连接
ln -s /usr/local/erlang/bin/erl /usr/local/bin/erl
#查看版本
erl
- Installation Rabbitmq
rpm -ivh --nodeps rabbitmq-server-3.8.1-1.el7.noarch.rpm
#发现安装成功了。再去查下其rpm包,
rpm -qa | grep rabbitmq
# rabbitmq的一些命令
service rabbitmq-server start
service rabbitmq-server stop
service rabbitmq-server restart
service rabbitmq-server status 查看状态
chkconfig rabbitmq-server on 设置开机自启
# rpm安装,默认目录是:/usr/lib/rabbitmq/
#修改配置文件开启登录权限
cd /usr/lib/rabbitmq/lib/rabbitmq_server-3.8.1/ebin
#核心配置文件
vim rabbit.app
#改成这样放开登录权限 然后保存
{loopback_users, [guest]},
# 开启web界面管理工具
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart
By IP: 15276 visit web side, you need a firewall port development
Fourth, increase the user to create a Virtual Hosts
- Increase user
1, the super administrator (administrator)
can be found on the management console, you can view all the information, and can operate on a user policy (policy).
2, monitoring those (monitoring)
can be found on the management console, and can view information rabbitmq nodes (number of processes, memory usage, disk usage, etc.)
3, policy-makers (policymaker)
can be found on the management console, and can for policy management. But you can not see the node information (section identified on the red box).
4, the general manager (management)
can only be landed Management Console, you can not see the node information, the policy can not be managed.
5, the other
could not land management console, often it is the producers and consumers. Creating Virtual Hosts
set the permissions of the current vhost