RabbitMQ 更换日志和数据存储目录

RabbitMQ About 318 words

步骤

创建mnesialog两个文件夹

mkdir /home/rabbitmq/{mnesia,log}

目录授权

chmod -R rabbitmq:rabbitmq /home/rabbitmq

新建rabbitmq-env.conf配置文件

vim /etc/rabbitmq/rabbitmq-env.conf

添加以下配置

RABBITMQ_MNESIA_BASE=/home/rabbitmq/mnesia
RABBITMQ_LOG_BASE=/home/rabbitmq/log

重启RabbitMQ

sudo rabbitmqctl stop 
sudo service rabbitmq-server start
Views: 4,195 · Posted: 2020-10-19

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh