1,用systemctl start rabbitmq-server 命令启动
发现启动不起来
2,查看journalctl -xe 日志
发现
1月 30 15:05:34 sit2--10-1-1-97 rabbitmq-server[5088]: BOOT FAILED 1月 30 15:05:34 sit2--10-1-1-97 rabbitmq-server[5088]: =========== 1月 30 15:05:34 sit2--10-1-1-97 rabbitmq-server[5088]: Config file generation failed: 1月 30 15:05:34 sit2--10-1-1-97 rabbitmq-server[5088]: 15:05:33.437 [error] Error writing /usr/local/rabbitmq/var/lib/rabbitmq/config/generated/rabbitmq.2023.01.30.15.05.33.config: permission den1月 30 15:05:34 sit2-cbs-sit2-mda-bj-10-2-1-97 rabbitmq-server[5088]: 15:05:33.437 [error] Error writing /usr/local/rabbitmq/var/lib/rabbitmq/config/generated/vm.2023.01.30.15.05.33.args: permission denied
3,具体发现 generated 这个目录权限没有给rabbitmq,
执行 chown rabbitmq:rabbitmq *
然后 systemctl start rabbitmq-server命令就可以了
注意 检查:
rabbitmq 日志目录/var/log/rabbitmq/
rabbitmq 配置文件目录/etc/rabbitmq/
标签:15,05,解决方案,启动,rabbitmq,server,sit2,34 From: https://www.cnblogs.com/alonewaiting/p/17076078.html