我想將Rabbitmq MNESIA目錄更改爲/disk
文件夾,而不是默認/var/lib
。我沒有在/usr/lib/rabbitmq/bin
變更,在rabbitmq-env
與RabbitMQ日誌和Mnesia在環境變量中的位置沒有反映?
RABBITMQ_MNESIA_BASE=/disk/rabbitmq/
RABBITMQ_LOG_BASE=/disk/rabbitmq/log/
而且隨着
service rabbitmq-server restart
Restarting rabbitmq-server (via systemctl): [ OK ]
重新啓動它後,但是,當我檢查的地位
> service rabbitmq-server status
WARNING: Removing trailing slash from RABBITMQ_MNESIA_BASE
WARNING: Removing trailing slash from RABBITMQ_MNESIA_BASE
Status of node '[email protected]' ...
Error: unable to connect to node '[email protected]': nodedown
DIAGNOSTICS
===========
attempted to contact: ['[email protected]']
[email protected]:
* connected to epmd (port 4369) on ip-10-03-209-294
* epmd reports: node 'rabbit' not running at all
no other nodes on ip-10-03-209-294
* suggestion: start the node
current node details:
- node name: '[email protected]'
- home dir: /var/lib/rabbitmq
- cookie hash: D1JxYyl9vuDgVmH5K4dGyQ==
刪除所有更改後,它是工作正常。但我想MNESIA目錄是/磁盤。我也重新啓動了該實例。
做步驟4在其啓動後,如果我使用Ctrl + C,然後停止退出?我該如何克服這個? – Dileephell
你不應該阻止它,如果目錄沒有正確的權限,就會發生這種情況! – Gabriele
我剛剛重新啓動了它很多天後,它下降,數據目錄自動更改爲/ var/lib/rabbitmq ??? 「 – Dileephell