RabbitMQ-单机版部署
wget https://github.com/rabbitmq/erlang-rpm/releases/download/v21.2.3/erlang-21.2.3-1.el7.centos.x86_64.rpm
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.9/rabbitmq-server-3.7.9-1.el7.noarch.rpm
yum install socat
rpm -ivh erlang-21.2.3-1.el7.centos.x86_64.rpm rabbitmq-server-3.7.9-1.el7.noarch.rpm
mkdir -p /app/applogs/rabbitmq
mkdir -p /app/rabbitmq_data
chown -R rabbitmq:rabbitmq /app/applogs/rabbitmq
chown -R rabbitmq:rabbitmq /app/rabbitmq_data
# 修改存储目录
vim /etc/rabbitmq/rabbitmq-env.conf
RABBITMQ_MNESIA_BASE=/app/rabbitmq_data/mnesia
RABBITMQ_LOG_BASE=/app/applogs/rabbitmq
rabbitmqctl --version
systemctl start rabbitmq-server
systemctl status rabbitmq-server
systemctl enable rabbitmq-server
rabbitmq-plugins enable rabbitmq_management # 开启web管理
rabbitmq-plugins enable rabbitmq_management
rabbitmqctl add_user admin admin
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"