windows安裝rabbitmq

來源:互聯網
上載者:User

標籤:issues   from   files   specific   mis   password   gen   blog   admin   

  • 官網下載windows安裝版本:http://www.rabbitmq.com/install-windows.html ,安裝檔案rabbitmq-server-3.6.5.exe
  • 前提:安裝erlang;官網下載:http://www.erlang.org/downloads,安裝檔案:OTP 19.1 Windows 64-bit Binary File (101629312)
  • erlang安裝步驟如下:
    1.雙擊運行安裝即可(在安裝目錄選擇時注意可輸入自己容易記並好區別的,eg:D:\work\emm_windows\erlang)2.配置環境變數(如果不在系統內建命令提示字元下運行,這步可跳過):在系統變數的PATH後面添加上erl.exe的所在目錄即可(eg:D:\work\emm_windows\erlang\bin\werl.exe)
    3.在命令提示字元下輸入”erl”可得如下結果: C:\Users\adapp>erl Eshell V5.10.3 (abort with ^G) 1> 表示安裝成功,或者直接點擊安裝成功後的”Erlang”表徵圖後提示: Erlang R16B02 (erts-5.10.3) [64-bit] [smp:4:4] [async-threads:10] Eshell V5.10.3 (abort with ^G) 1> 亦表示安裝成功.

     

  • 運行rabbitmq安裝包。
  • 安裝成功後,啟用外掛程式
    D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins.bat enable rabbitmq_managementThe following plugins have been enabled:  mochiweb  webmachine  rabbitmq_web_dispatch  amqp_client  rabbitmq_management_agent  rabbitmq_managementApplying plugin configuration to [email protected]-HONGCHQ... started 6 plugins.D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins.bat enable rabbitmq_mqttThe following plugins have been enabled:  rabbitmq_mqttApplying plugin configuration to [email protected]-HONGCHQ... started 1 plugin.D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmq-plugins.bat enable rabbitmq_tracingThe following plugins have been enabled:  rabbitmq_tracingApplying plugin configuration to [email protected]-HONGCHQ... started 1 plugin.

     

  • 建立使用者,密碼,綁定許可權
    D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmqctl.bat add_user emm 123456Creating user "emm" ...D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmqctl.bat set_user_tags emm administratorSetting tags for user "emm" to [administrator] ...D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmqctl.bat set_permissions -p / emm ".*" ".*" ".*"Setting permissions for user "emm" in vhost "/" ...D:\work\emm_windows\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmqctl.bat list_usersListing users ...guest   [administrator]emm     [administrator]

     

  • 使用瀏覽器開啟http://localhost:15672 訪問Rabbit Mq的管理主控台,使用剛才建立的帳號登陸系統

     

  • 啟停操作可在start menu菜單中進行。
  • 附官網說明:
    Install the ServerFirstly, download and run the Erlang Windows Binary File. It takes around 5 minutes.Then just run the installer, rabbitmq-server-3.6.5.exe. It takes around 2 minutes, and will set RabbitMQ up and running as a service, with a default configuration.Run RabbitMQ ServiceCustomise RabbitMQ Environment VariablesThe service will run fine using its default settings. You may want to customise the RabbitMQ environment or edit configuration.Run RabbitMQThe RabbitMQ service starts automatically. You can stop/reinstall/start the RabbitMQ service from the Start Menu.Manage the ServiceYou can find links to RabbitMQ directories in the Start Menu.There is also a link to a command prompt window that will start in the sbin dir, in the Start Menu. This is the most convenient way to run the various command line tools.Port AccessFirewalls and other security tools may prevent RabbitMQ from binding to a port. When that happens, RabbitMQ will fail to start. Make sure the following ports can be opened:4369 (epmd), 25672 (Erlang distribution)5672, 5671 (AMQP 0-9-1 without and with TLS)15672 (if management plugin is enabled)61613, 61614 (if STOMP is enabled)1883, 8883 (if MQTT is enabled)It is possible to configure RabbitMQ to use different ports.Default user accessThe broker creates a user guest with password guest. Unconfigured clients will in general use these credentials. By default, these credentials can only be used when connecting to the broker as localhost so you will need to take action before connecting from any other machine.See the documentation on access control for information on how to create more users, delete the guest user, or allow remote access to the guest user.Managing the BrokerTo stop the broker or check its status, use rabbitmqctl.bat in sbin (as an administrator).Stopping the BrokerUse rabbitmqctl stop.Checking the Broker StatusUse rabbitmqctl status. All rabbitmqctl commands will report the node absence if no broker is running (i.e. nodedown).More info on rabbitmqctlLoggingOutput from the server is sent to a RABBITMQ_NODENAME.log file in the RABBITMQ_LOG_BASE directory. Additional log data is written to RABBITMQ_NODENAME-sasl.log.The broker always appends to the log files, so a complete log history is retained.You can rotate logs using rabbitmqctl rotate_logs.Troubleshooting When Running as a ServiceIn the event that the Erlang VM crashes whilst RabbitMQ is running as a service, rather than writing the crash dump to the current directory (which doesn‘t make sense for a service) it is written to an erl_crash.dump file in the base directory of the RabbitMQ server (set by the RABBITMQ_BASE environment variable, defaulting to %APPDATA%\%RABBITMQ_SERVICENAME% - typically %APPDATA%\RabbitMQ otherwise).Windows-specific IssuesWe aim to make RabbitMQ a first-class citizen on Windows. However, sometimes there are circumstances beyond our control. Please consult the Windows-specific Issues page.Getting HelpIf you have questions or need help, feel free to ask on RabbitMQ mailing list.

     

windows安裝rabbitmq

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.