rabbitmq 服务器终止握手:403(ACCESS-REFUSED),消息为“ACCESS_REFUSED

rm5edbpk  于 12个月前  发布在  RabbitMQ
关注(0)|答案(1)|浏览(375)

我已经有了一个使用rabbitmq和nodejs的项目,但是当我启动我的worker node myWorker.js时,我得到了这个错误:

2023-11-27 15:40:24.359 [info] [env] RabbitMQ Instance: [undefined@undefined]
2023-11-27 15:40:24.360 [info] [env] Third Party's timeout: [3] sec
2023-11-27 15:40:24.362 [info] [env] -->  <--
/DATA/rabbitmq/amqp/worker/consumer.js:21
            throw error0;
            ^

Error: Handshake terminated by server: 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile."
    at afterStartOk (/DATA/rabbitmq/node_modules/amqplib/lib/connection.js:223:12)
    at /DATA/rabbitmq/node_modules/amqplib/lib/connection.js:159:12
    at Socket.recv (/DATA/rabbitmq/node_modules/amqplib/lib/connection.js:507:12)
    at Object.onceWrapper (events.js:420:28)
    at Socket.emit (events.js:314:20)
    at emitReadable_ (_stream_readable.js:557:12)
    at processTicksAndRejections (internal/process/task_queues.js:83:21)

字符串
为rabbit创建凭据的步骤<$<$$> rabbitmqctl set_user_tags myuser administrator rabbitmqctl set_permissions -p / myuser“. *”<$<$如果我转到网页,我可以登录没有问题,但当我启动工人,错误出现。
快来人帮帮我。

i7uq4tfw

i7uq4tfw1#

为root用户创建一个变量“prod”解决了问题

相关问题