Application rabbit exited with reason: {{cannot_log_to_file

Go 

关于一不小心删除了RabbitMQ日志后,然后进行systemctl start rabbitmq-server总是报以下错误:

Job for rabbitmq-server.service failed because the control process exited with error code.
See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.

按照提示执行journalctl -xe,发现以下错误:

Application rabbit exited with reason: {{cannot_log_to_file

创建该日志文件,并修改其权限,然后重新执行systemctl start rabbitmq-server即可启动成功。

总结:学会根据提示信息,执行相关命令找到发生错误的原因并解决它。