我使用以下批处理文件添加管理员用户并在我的 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相关