首页 > 代码库 > error in config file "/etc/rabbitmq/rabbitmq.config"

error in config file "/etc/rabbitmq/rabbitmq.config"

记录一次RabbitMQ配置文件配置错误

error信息:

dill@ubuntu-vm:/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,数组[]中最后一项,后面不能加逗号。逗号删除,问题解决。

技术分享

error in config file "/etc/rabbitmq/rabbitmq.config"