AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1134815
Accepted
Hiddai
Hiddai
Asked: 2023-06-25 18:38:11 +0800 CST2023-06-25 18:38:11 +0800 CST 2023-06-25 18:38:11 +0800 CST

添加管理员用户并启用rabbitmq_management的批处理获得单调时间倒退!错误

  • 772

我使用以下批处理文件添加管理员用户并在我的 Windows 服务器中启用rabbitmq 管理站点。

IF "%PROCESSOR_ARCHITECTURE%"=="AMD64" GOTO INST64
pushd C:\Program Files\RabbitMQ Server\rabbitmq_server-3.12.0\sbin
GOTO END
:INST64
pushd C:\Program Files\RabbitMQ Server\rabbitmq_server-3.12.0\sbin
:END
call rabbitmqctl stop_app
call rabbitmqctl reset
call rabbitmqctl start_app
call rabbitmqctl add_user admin admin
call rabbitmqctl set_permissions admin ".*" ".*" ".*"
call rabbitmqctl set_user_tags admin administrator
call rabbitmq-plugins enable rabbitmq_management
 
pause

该批处理在以下 RabbitMQ 版本中对我来说效果很好:3.6.12 3.8.2 3.10.5

现在,迁移到Windows Server 2022并安装Erlang 26.0.1和RabbitMQ 3.12.0,通常在安装 Erlang 和 RabbitMQ 后我不执行任何操作,而是运行批处理文件并以管理员身份登录到rabbitmq 管理站点。但现在?- 每次我运行批处理时都会失败。这是输出:

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.12.0\sbin>call rabbitmqctl stop_app
Monotonic time stepped backwards!
Previous time: 15735273
Current time:  15734249
Monotonic time stepped backwards!
Previous time: 16079719
Current time:  16078695
Monotonic time stepped backwards!
Previous time: 12353401
Current time:  12352377
Monotonic time stepped backwards!
Previous time: 11335990
Current time:  11334966
Monotonic time stepped backwards!
Previous time: 17649224
Current time:  17648200
Monotonic time stepped backwards!
Previous time: 20655484
Current time:  20654460
Monotonic time stepped backwards!
Previous time: 10719626
Current time:  10718602
Press any key to continue . . .

到目前为止我尝试了什么:

  • 我放入advanced.config以下行:[{rabbit, [{time_warp_detection, false}]}].- 重新启动电脑并尝试运行批处理 - 失败
  • 我创建了一个rabbitmq.config并将其放在以下行中:[{rabbit, [{time_warp_detection, false}]}].- 重新启动电脑并尝试运行批处理 - 失败
  • 我执行了该命令rabbitmq-server并得到了以下输出,该输出被卡住并且无法继续。执行此命令允许我进入管理站点,关闭窗口关闭管理站点并获取ERR_CONNECTION_REFUSED:
2023-06-25 13:32:33.764000+03:00 [warning] <0.135.0> Using the old format config file:
 c:/Users/qa/AppData/Roaming/RabbitMQ/rabbitmq.config
2023-06-25 13:32:33.764000+03:00 [warning] <0.135.0> Please update your config files to the new format and 
remove the old file.
2023-06-25 13:32:56.563000+03:00 [notice] <0.44.0> Application syslog exited with reason: stopped
2023-06-25 13:32:56.563000+03:00 [notice] <0.235.0> Logging: switching to configured handler(s); 
following messages may not be visible in this log output

  ##  ##      RabbitMQ 3.12.0
  ##  ##
  ##########  Copyright (c) 2007-2023 VMware, Inc. or its affiliates.
  ######  ##
  ##########  Licensed under the MPL 2.0. Website: https://rabbitmq.com

  Erlang:      26.0.1 [jit]
  TLS Library: OpenSSL - OpenSSL 3.1.0 14 Mar 2023
  Release series support status: supported

  Doc guides:  https://rabbitmq.com/documentation.html
  Support:     https://rabbitmq.com/contact.html
  Tutorials:   https://rabbitmq.com/getstarted.html
  Monitoring:  https://rabbitmq.com/monitoring.html

  Logs: <stdout>
        c:/Users/qa/AppData/Roaming/RabbitMQ/log/[email protected]

  Config file(s): c:/Users/qa/AppData/Roaming/RabbitMQ/rabbitmq.config

  Starting broker... completed with 3 plugins.

请告知,在 Windows Server 2022 上安装 RabbitMQ 3.12.0 后,设置 RabbitMQ 3.12.0 的正确步骤是什么,以便管理站点始终可用并成功创建管理员用户?

更新:此问题也与Erlang 25.XX相关

rabbitmq
  • 1 1 个回答
  • 19 Views

1 个回答

  • Voted
  1. Best Answer
    Hiddai
    2023-06-30T14:12:11+08:002023-06-30T14:12:11+08:00

    我运行了以下脚本来添加rabbit.comfig文件及其相关配置,然后我设法运行批处理文件而没有任何错误

    $rabbitdir = 'C:\Users\qa\AppData\Roaming\RabbitMQ'
    [Environment]::SetEnvironmentVariable("RABBITMQ_BASE", $rabbitdir, "Machine")
     
    "[rabbitmq_management]." | Add-Content -PassThru "$rabbitdir\enabled_plugins" -Verbose
    '[ { rabbit, [  { loopback_users, [ ] },    { tcp_listeners, [ 5672 ] },    { ssl_listeners, [ ] }, { default_pass, <<"admin">> },  { default_user, <<"admin">> },  { hipe_compile, false }] } ].' | Add-Content -PassThru "$rabbitdir\rabbitmq.config" -Verbose
    
    • 0

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve