rabbitmq服务启动失败 1067_Win10环境下RabbitMQ安装

论坛 期权论坛 编程之家     
选择匿名的用户   2021-5-29 17:10   11   0

bd571bed04f16162234aa0e44015132e.png

Windows安装

RabbitMQ需要64版本的Erlang环境支持, 需要先安装Erlang语言, 注意: Erlang需要在Administrator环境下安装, 否则给RabbitMQ的注册key将不会显示

Erlang下载地址

RabbitMQ下载地址

环境变量配置

配置Erlang

  ERLANG_HOME=C:Program Fileserl10.2
  PATH=%ERLANG_HOME%bin;

配置RabbitMQ

  PATH=C:Program FilesRabbitMQ Serverrabbitmq_server-3.7.12sbin;

基本命令

  # 服务命令启动
  $ net start rabbitmq
  $ net stop rabbitmq
  
  # rabbitmq 命令
  $ rabbitmq-service start
  $ rabbitmqctl stop
  $ rabbitmqctl status

开启管理插件(Web管理页面)

注意需要在plugins目录下进行启动
  $ cd C:Program FilesRabbitMQ Serverrabbitmq_server-3.7.12plugins
  $ rabbitmq-plugins enable rabbitmq_management
  # Enabling plugins on node rabbit@DESKTOP-H76LJAQ:
  # rabbitmq_management
  #The following plugins have been configured:
  #  rabbitmq_management
  #  rabbitmq_management_agent
  #  rabbitmq_web_dispatch
  #Applying plugin configuration to rabbit@DESKTOP-H76LJAQ...
  # rabbitmq_management
  #  rabbitmq_management_agent
  #  rabbitmq_web_dispatch
  
  #started 3 plugins.

启动服务后浏览器访问 http://localhost:15672

用户名密码都为guest

93f80aa8b8646db27e768f88d35a569b.png
登陆页面

619efb89fdcac70c8680420ebd1e2ba9.png
这就是管理页面啦

端口访问

防火墙或其他安全软件可能会阻止RabbitMQ启动某些端口,
当这种情况发生时, RabbitMQ会启动失败, 确保以下端口可以被启动:
  • 4369: epmd, a peer discovery service used by RabbitMQ nodes and CLI tools
  • 5672, 5671: used by AMQP 0-9-1 and 1.0 clients without and with TLS
  • 25672: used for inter-node and CLI tools communication (Erlang distribution server port) and is allocated from a dynamic range (limited to a single port by default, computed as AMQP port + 20000). Unless external connections on these ports are really necessary (e.g. the cluster uses federation or CLI tools are used on machines outside the subnet), these ports should not be publicly exposed. See networking guide for details.
  • 35672-35682: used by CLI tools (Erlang distribution client ports) for communication with nodes and is allocated from a dynamic range (computed as server distribution port + 10000 through server distribution port + 10010). See networking guide for details.
  • 15672: HTTP API clients, management UI and rabbitmqadmin (only if the management plugin is enabled)
  • 61613, 61614: STOMP clients without and with TLS (only if the STOMP plugin is enabled)
  • 1883, 8883: (MQTT clients without and with TLS, if the MQTT plugin is enabled
  • 15674: STOMP-over-WebSockets clients (only if the Web STOMP plugin is enabled)
  • 15675: MQTT-over-WebSockets clients (only if the Web MQTT plugin is enabled)
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP