Linux安装配置RabbitMq
安装Erlang
https://www.erlang.org/downloads
安装依赖包
yum install gcc glibc-devel make ncurses-devel openssl-devel autoconf
yum install unixODBC unixODBC-devel
安装包 Linux
tar -zxvf otp_src_19.3.tar.gz
cd otp_src_19.3
./configure --prefix=/usr/local/erlang --enable-hipe --enable-threads --enable-smp-support --enable-kernel-poll --without-javac
make
make install
安装RabbitMq
Rabbit和Erlang关系
https://www.rabbitmq.com/which-erlang.html#compatibility-matrix
安装包
xz -d rabbitmq-server-generic-unix-3.7.26.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.7.26.tar
编辑
vim ~/.bashrc
文件中追加
export RABBITMQ_HOME=/home/rabbitmq_server-3.7.26
export PATH=$RABBITMQ_HOME/sbin:$PATH
source ~/.bashrc
env
守护进程安装RabbitMq
rabbitmq-server -detached
rabbitmqctl status
rabbitmqctl add_user admin admin
rabbitmqctl set_permissions -p "/" admin ".*" ".*" ".*"
rabbitmqctl set_user_tags admin administrator
rabbitmq-plugins enable rabbitmq_management
开放端口15672、5672,如果是云服务器还需要检查安全组是否开放
firewall-cmd --add-port 15672/tcp --permanent
firewall-cmd --add-port 5672/tcp --permanent
firewall-cmd --reload
标签:enable,tar,--,rabbitmq,devel,RabbitMq,Linux,安装
From: https://www.cnblogs.com/SnowCountry/p/linux-installation-configuration-rabbitmq-z2gi5ho.ht