rabbitMQ单机版安装 - kilig-linux mint

kilig-linux mintkilig-linux mint

分享运维中出现的问题,并分享运维中的心得!

rabbitMQ单机版安装

yum -y install gcc glibc-devel make ncurses-devel openssl-devel xmlto perl wget gcc-c++
yum install -y epel-release
yum install -y wxWidgets-devel
yum install wxBase -y
[root@rabbitmq-01 otp_src_23.1]# cd /usr/bin
[root@rabbitmq-01 bin]# ln -s /usr/bin/wx-config-3.0 /usr/bin/wx-config
yum -y install unixODBC-devel
yum install -y java-1.8.0-openjdk-devel
[root@rabbitmq-01 soft]# mv rabbitmq_server-3.8.9/ rabbitmq
[root@rabbitmq-01 soft]#./configure --prefix=/usr/local/erlang #生产安装配置
[root@rabbitmq-01 soft]#make && make install #编译安装
[root@yx-tools data]# cat /etc/profile
export ERLONG_HOME=/usr/local/erlang
export PATH=${ERLONG_HOME}/bin:$PATH

export RABBITMQ_HOME=/data/rabbitmq
export PATH=${RABBITMQ_HOME}/sbin:$PATH

mkdir /etc/rabbitmq
rabbitmq-server -detached

创建账户授权

[root@rabbitmq-01 data]# rabbitmqctl add_user mq 123456
[root@rabbitmq-01 data]# rabbitmqctl set_permissions -p / mq "." "." ".*"
root@rabbitmq-01 data]# rabbitmqctl set_user_tags mq administrator

root@rabbitmq-01 data]#rabbitmq-plugins enable rabbitmq_management
root@rabbitmq-01 data]# rabbitmq-plugins enable rabbitmq_mqtt
[root@rabbitmq-01 data]# rabbitmq-plugins enable rabbitmq_web_mqtt

高版本添加prometheus监控插件
rabbitmq-plugins enable rabbitmq_prometheus

本原创文章未经允许不得转载 | 当前页面:kilig-linux mint » rabbitMQ单机版安装

评论