1. 程式人生 > >RabbitMQ 修改配置檔案 啟動rabiitQ

RabbitMQ 修改配置檔案 啟動rabiitQ

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>dir
 驅動器 C 中的卷是 Windows7_OS
 卷的序列號是 FCF8-0C5D


 C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin 的目錄


2017/07/24  15:16    <DIR>          .
2017/07/24  15:16    <DIR>          ..
2017/05/25  18:54             1,660 rabbitmq-defaults.bat
2017/05/25  18:54             1,065 rabbitmq-echopid.bat
2017/05/25  18:54            15,701 rabbitmq-env.bat
2017/05/25  18:54             1,888 rabbitmq-plugins.bat
2017/05/25  18:54             4,936 rabbitmq-server.bat
2017/05/25  18:54             7,879 rabbitmq-service.bat
2017/05/25  18:54             1,903 rabbitmqctl.bat
               7 個檔案         35,032 位元組
               2 個目錄 28,917,420,032 可用位元組


C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>rabbitmq-server.bat

ERROR: node with name "rabbit" already running on "R23196646"


C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>rabbitmq-server.bat


              RabbitMQ 3.6.10. Copyright (C) 2007-2017 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: C:/Users/yupeipei/AppData/Roaming/RabbitMQ/log/RABBIT~1.LOG
  ######  ##        C:/Users/yupeipei/AppData/Roaming/RabbitMQ/log/RABBIT~2.LOG
  ##########
              Starting broker...
 completed with 0 plugins.
終止批處理操作嗎(Y/N)?
^C
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>rabbitmq-server.bat


              RabbitMQ 3.6.10. Copyright (C) 2007-2017 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: C:/Users/yupeipei/AppData/Roaming/RabbitMQ/log/RABBIT~1.LOG
  ######  ##        C:/Users/yupeipei/AppData/Roaming/RabbitMQ/log/RABBIT~2.LOG
  ##########
              Starting broker...
 completed with 0 plugins.
終止批處理操作嗎(Y/N)? Y


C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>rabbitmq-server.bat


              RabbitMQ 3.6.10. Copyright (C) 2007-2017 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: C:/Users/yupeipei/AppData/Roaming/RabbitMQ/log/RABBIT~1.LOG
  ######  ##        C:/Users/yupeipei/AppData/Roaming/RabbitMQ/log/RABBIT~2.LOG
  ##########
              Starting broker...
 completed with 7 plugins.
終止批處理操作嗎(Y/N)?
終止批處理操作嗎(Y/N)?
^C
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>rabbitmq-server.bat


              RabbitMQ 3.6.10. Copyright (C) 2007-2017 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: C:/Users/yupeipei/AppData/Roaming/RabbitMQ/log/RABBIT~1.LOG
  ######  ##        C:/Users/yupeipei/AppData/Roaming/RabbitMQ/log/RABBIT~2.LOG
  ##########
              Starting broker...
 completed with 7 plugins.
終止批處理操作嗎(Y/N)?
終止批處理操作嗎(Y/N)?
^C
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>


C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>


C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>rabbitmq-server.bat
{"could not start kernel pid",application_controller,"error in config file \"c:/Users/yupeipei/AppData/Roaming/RabbitMQ/
rabbitmq.config\" (64): syntax error before: '['"}
could not start kernel pid (application_controller) (error in config file "c:/Users/yupeipei/AppData/Roaming/RabbitMQ/ra
bbitmq.config" (64): syntax error before: '[')


Crash dump is being written to: erl_crash.dump...done


C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>rabbitmq-server.bat
{"could not start kernel pid",application_controller,"error in config file \"c:/Users/yupeipei/AppData/Roaming/RabbitMQ/
rabbitmq.config\" (330): syntax error before: ']'"}
could not start kernel pid (application_controller) (error in config file "c:/Users/yupeipei/AppData/Roaming/RabbitMQ/ra
bbitmq.config" (330): syntax error before: ']')


Crash dump is being written to: erl_crash.dump...done


C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>rabbitmq-server.bat
{"could not start kernel pid",application_controller,"error in config file \"c:/Users/yupeipei/AppData/Roaming/RabbitMQ/
rabbitmq.config\" (330): syntax error before: ']'"}
could not start kernel pid (application_controller) (error in config file "c:/Users/yupeipei/AppData/Roaming/RabbitMQ/ra
bbitmq.config" (330): syntax error before: ']')


Crash dump is being written to: erl_crash.dump...done


C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin>rabbitmq-server.bat


              RabbitMQ 3.6.10. Copyright (C) 2007-2017 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: C:/Users/yupeipei/AppData/Roaming/RabbitMQ/log/RABBIT~1.LOG
  ######  ##        C:/Users/yupeipei/AppData/Roaming/RabbitMQ/log/RABBIT~2.LOG
  ##########
              Starting broker...

 completed with 7 plugins.

修改配置檔案 目錄及內容:

C:\Users\XXX\AppData\Roaming\RabbitMQ

   64行修改為  {loopback_users, []}

 33.行 修改為 ]},