- 依赖安装
yum install \
build-essential openssl openssl-devel unixODBC unixODBC-devel \
make gcc gcc-c++ kernel-devel m4 ncurses-devel tk tc xz -y
- 下载
wget www.rabbitmq.com/releases/erlang/erlang-18.3-1.el7.centos.x86_64.rpm
wget http://repo.iotti.biz/CentOS/7/x86_64/socat-1.7.3.2-5.el7.lux.x86_64.rpm
wget www.rabbitmq.com/releases/rabbitmq-server/v3.6.5/rabbitmq-server-3.6.5-1.noarch.rpm
- 安装rpm
rpm -ivh erlang-18.3-1.el7.centos.x86_64.rpm
rpm -ivh socat-1.7.3.2-1.1.el7.x86_64.rpm --nodeps --force
rpm -ivh rabbitmq-server-3.6.5-1.noarch.rpm
- 安装插件
rabbitmq-plugins enable rabbitmq_management
- 更改配置
vi /usr/lib/rabbitmq/lib/rabbitmq_server-3.6.5/ebin/rabbit.app
6. 启动
进入 bin 然后执行 rabbitmq-server start &
- 查看状态
yum install lsof
lsof -i:5672 # 默认端口 产看端口情况
- 访问
访问地址:http://ip:15672/ 需要输入用户与密码 配置文件中查看
- 关闭
rabbitmqctl app_stop