![](https://img-blog.csdnimg.cn/9d851a975db94538b3ac2045b8a6561f.jpeg)
2023-01-07 16:05:00.683333+08:00 [info] <0.223.0> Running boot step definition_import_worker_pool defined by app rabbit
2023-01-07 16:05:00.683411+08:00 [info] <0.281.0> Starting worker pool 'definition_import_pool' with 8 processes in it
2023-01-07 16:05:00.684025+08:00 [info] <0.223.0> Running boot step cluster_name defined by app rabbit
2023-01-07 16:05:00.684115+08:00 [info] <0.223.0> Initialising internal cluster ID to 'rabbitmq-cluster-id-2BDa_5BtXZBC6Al_WblSVQ'
2023-01-07 16:05:00.686253+08:00 [info] <0.223.0> Running boot step direct_client defined by app rabbit
2023-01-07 16:05:00.686390+08:00 [info] <0.658.0> Resetting node maintenance status
2023-01-07 16:05:00.686556+08:00 [info] <0.658.0> Ready to start client connection listeners
2023-01-07 16:05:00.731797+08:00 [info] <0.676.0> started TCP listener on [::]:5672
2023-01-07 16:05:00.809250+08:00 [info] <0.658.0> Server startup complete; 0 plugins started.
2023-01-07 16:13:08.887815+08:00 [noti] <0.61.0> SIGTERM received - shutting down
2023-01-07 16:13:08.888382+08:00 [info] <0.223.0> Peer discovery backend rabbit_peer_discovery_classic_config does not support registration, skipping unregistration.
2023-01-07 16:13:08.888521+08:00 [info] <0.676.0> stopped TCP listener on [::]:5672
2023-01-07 16:13:08.915922+08:00 [info] <0.1000.0> Closing all connections in vhost '/' on node 'rabbit@172-11-114-3' because the vhost is stopping
2023-01-07 16:13:08.915967+08:00 [info] <0.621.0> Stopping message store for directory '/var/lib/rabbitmq/mnesia/rabbit@172-11-114-3/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent'
2023-01-07 16:13:08.958450+08:00 [info] <0.621.0> Message store for directory '/var/lib/rabbitmq/mnesia/rabbit@172-11-114-3/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/msg_store_persistent' is stopped
2023-01-07 16:13:08.958632+08:00 [info] <0.617.0> Stopping message store for directory '/var/lib/rabbitmq/mnesia/rabbit@172-11-114-3/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/msg_store_transient'
2023-01-07 16:13:08.962221+08:00 [info] <0.617.0> Message store for directory '/var/lib/rabbitmq/mnesia/rabbit@172-11-114-3/msg_stores/vhosts/628WB79CIFDYO9LJI6DKMI09L/msg_store_transient' is stopped
看日志在16:05 都是启动的
16:13分钟 自己断了
什么原因呢?
分析发现 原来改了hostname hostnamectl set-hostname waa01
导致rabbitmq stop
重启rabbitmq server
systemctl restart rabbitmq-server
查看
/var/lib/rabbitmq/mnesia 下生成三个文件
rabbit@waa01
rabbit@waa01-feature_flags
rabbit@waa01-plugins-expand
rabbit@waa01.pid
Mnesia 是一个分布式数据库,使用它来存储有关用户、交换器、队列和绑定的信息。 但是,消息不存储在数据库中。
日志目录 /var/log/rabbitmq/
rabbit@waa01.log
rabbit@waa01_upgrade.log
2023-01-12 10:02:37.874450+08:00 [info] <0.224.0> Running boot step direct_client defined by app rabbit
2023-01-12 10:02:37.874579+08:00 [info] <0.224.0> Running boot step rabbit_management_load_definitions defined by app rabbitmq_management
2023-01-12 10:02:37.874664+08:00 [info] <0.471.0> Resetting node maintenance status
2023-01-12 10:02:37.900930+08:00 [info] <0.530.0> Management plugin: HTTP (non-TLS) listener started on port 15672
2023-01-12 10:02:37.901092+08:00 [info] <0.558.0> Statistics database started.
2023-01-12 10:02:37.901191+08:00 [info] <0.557.0> Starting worker pool 'management_worker_pool' with 3 processes in it
2023-01-12 10:02:37.901589+08:00 [info] <0.471.0> Ready to start client connection listeners
2023-01-12 10:02:37.936511+08:00 [info] <0.582.0> started TCP listener on [::]:5672
2023-01-12 10:02:38.008024+08:00 [info] <0.471.0> Server startup complete; 3 plugins started.
2023-01-12 10:02:38.008024+08:00 [info] <0.471.0> * rabbitmq_management
2023-01-12 10:02:38.008024+08:00 [info] <0.471.0> * rabbitmq_web_dispatch
2023-01-12 10:02:38.008024+08:00 [info] <0.471.0> * rabbitmq_management_agent