先安装erlang 依赖,也是门编程语言,
下载源码包地址 :https://www.erlang.org/downloads/20.1
首先先安装个依赖
yum install ncurses-devel
tar xf otp_src_20.1.tar.gz
cd otp_src_20.1
./configure --prefix=/usr/local/erlang20 --without-javac
make
make install
erl验证
cd /usr/local/erlang
./erl就说明安装成功了
下载源码https://www.rabbitmq.com/install-generic-unix.html
安装RabbitMQ
安装python
yum install python -y
安装simplejson
yum install xmlto -y
yum install python-simplejson -y
下载源码https://www.rabbitmq.com/install-generic-unix.html
tar xf rabbitmq-server-generic-uxin-3.6.14.tar
mv rabbitmq_server-3.6.14 /usr/local/rabbitmq
./rabbitmq-server 启动rabbitMQ server 5672端口监听
修改环境变量:/etc/profile
export PATH=$PATH:/usr/local/rabbitmq/sbin
export PATH=$PATH:/usr/local/erlang20/bin
source /etc/profile
端口监听,启动rabbitmq
rabbitmq-server start -detached 5672
停止
rabbitmqctl stop
查看端口是否监听到
远程连接配置,guest guest
在这个目录下/usr/local/rabbitmq/etc/rabbitmq
新建一个配置文件 rabbitmq.config
[{rabbit, [{loopback_users, []}]}].
netstat -anp | grep 5672
### 添加RabbitMQ的帐号和密码
rabbitmqctl add_user admin admin
### 设定帐号权限(administrator[超级管理员],monitoring[监控者],
policymaker[策略制定者],management[普通管理者])
rabbitmqctl set_user_tags admin administrator