分配用户名/密码后,RabbitMQ服务器不再启动

kokeuurv  于 2022-11-08  发布在  RabbitMQ
关注(0)|答案(1)|浏览(219)

我安装了一个rabbitmq服务器,它是活动的,运行良好,直到我输入:
/etc/rabbitmq/rabbitmq.config文件中的命令行命令,并将其发送到相应的服务器。
我还分配了一个用户名和密码,并将该用户指定为管理员。之后,我尝试重新启动服务器,但它无法重新启动。检查了状态,它不再运行。知道我做错了什么吗?仍然是一个新手,任何提示都是很好的。

[root@rmq01 ~]# systemctl status rabbitmq-server.service -l
● rabbitmq-server.service - RabbitMQ broker
   Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Fri 2022-08-12 05:47:22 UTC; 1s ago
  Process: 1807 ExecStop=/usr/sbin/rabbitmqctl shutdown (code=exited, status=0/SUCCESS)
  Process: 7026 ExecStart=/usr/sbin/rabbitmq-server (code=exited, status=1/FAILURE)
 Main PID: 7026 (code=exited, status=1/FAILURE)
   Status: "Standing by"

Aug 12 05:47:22 rmq01 systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE
Aug 12 05:47:22 rmq01 systemd[1]: Failed to start RabbitMQ broker.
Aug 12 05:47:22 rmq01 systemd[1]: Unit rabbitmq-server.service entered failed state.
Aug 12 05:47:22 rmq01 systemd[1]: rabbitmq-server.service failed.

我确信答案就在我面前,但我似乎无法指出它。

kuuvgm7e

kuuvgm7e1#

请使用新的格式文件config:
https://github.com/rabbitmq/rabbitmq-server/blob/v3.8.x/deps/rabbit/docs/rabbitmq.conf.example


## Related doc guide: https://rabbitmq.com/access-control.html.

## The default "guest" user is only permitted to access the server

## via a loopback interface (e.g. localhost).

## {loopback_users, [<<"guest">>]},

## 

# loopback_users.guest = true

相关问题