记录一次RabbitMQ配置文件配置错误
error信息:
[email protected]:/usr/share/doc/rabbitmq-server$ sudo /usr/lib/rabbitmq/bin/rabbitmq-server
{"could not start kernel pid",application_controller,"error in config file \"/etc/rabbitmq/rabbitmq.config\" (318): syntax error before: ‘]‘"}
Crash dump is being written to: erl_crash.dump...done
could not start kernel pid (application_controller) (error in config file "/etc/rabbitmq/rabbitmq.config" (318): syntax error before: ‘]‘)
原因:
出错原因在逗号,类似JSON,数组[]中最后一项,后面不能加逗号。逗号删除,问题解决。
时间: 2024-11-10 14:04:47