java教程网

java基础教程,免费视频教程下载,java,spring,struts,hibernate,mybatis,springside等主流JAVA相关框架教程

RabbitMQ 环境配置-基于windows 10 x64

2016-07-02| 发布: | 浏览: 2278 |保存PDF

由于 RabbitMQ 是使用erlang开发的,所以首先要安装erlang


安装erlang

下一步


下一步


下一步


下一步
点击关闭完成安装
下一步





RabbitMQ Server安装好的目录结构:
C:\dev\RabbitMQServer
|   rabbitmq.ico
|   uninstall.exe
|
\---rabbitmq_server-3.6.2
   |   INSTALL.txt
   |   LICENSE-APACHE2-ExplorerCanvas.txt
   |   LICENSE-APL2-Rebar.txt
   |   LICENSE-APL2-Stomp-Websocket.txt
   |   LICENSE-BSD-base64js.txt
   |   LICENSE-BSD-glMatrix.txt
   |   LICENSE-EPL-OTP.txt
   |   LICENSE-MIT-EJS10.txt
   |   LICENSE-MIT-Flot.txt
   |   LICENSE-MIT-jQuery164.txt
   |   LICENSE-MIT-Mochi.txt
   |   LICENSE-MIT-Mochiweb.txt
   |   LICENSE-MIT-Sammy060.txt
   |   LICENSE-MIT-SockJS.txt
   |   LICENSE-MPL-RabbitMQ.txt
   |   LICENSE-MPL2.txt
   |   LICENSE.txt
   |   readme-service.txt
   |
   +---ebin
   |       background_gc.beam
   |       delegate.beam
   |       delegate_sup.beam
   |       dtree.beam
   |       file_handle_cache.beam
   |       file_handle_cache_stats.beam
   |       gatherer.beam
   |       gm.beam
   |       lqueue.beam
   |       mirrored_supervisor_sups.beam
   |       mnesia_sync.beam
   |       mochinum.beam
   |       pg2_fixed.beam
   |       pg_local.beam
   |       rabbit.app
   |       rabbit.beam
   |       rabbit_access_control.beam
   |       rabbit_alarm.beam
   |       rabbit_amqqueue_process.beam
   |       rabbit_amqqueue_sup.beam
   |       rabbit_amqqueue_sup_sup.beam
   |       rabbit_auth_mechanism_amqplain.beam
   |       rabbit_auth_mechanism_cr_demo.beam
   |       rabbit_auth_mechanism_plain.beam
   |       rabbit_autoheal.beam
   |       rabbit_binding.beam
   |       rabbit_boot_steps.beam
   |       rabbit_channel_sup.beam
   |       rabbit_channel_sup_sup.beam
   |       rabbit_cli.beam
   |       rabbit_client_sup.beam
   |       rabbit_connection_helper_sup.beam
   |       rabbit_connection_sup.beam
   |       rabbit_control_main.beam
   |       rabbit_ctl_usage.beam
   |       rabbit_dead_letter.beam
   |       rabbit_diagnostics.beam
   |       rabbit_direct.beam
   |       rabbit_disk_monitor.beam
   |       rabbit_epmd_monitor.beam
   |       rabbit_error_logger.beam
   |       rabbit_error_logger_file_h.beam
   |       rabbit_exchange.beam
   |       rabbit_exchange_parameters.beam
   |       rabbit_exchange_type_direct.beam
   |       rabbit_exchange_type_fanout.beam
   |       rabbit_exchange_type_headers.beam
   |       rabbit_exchange_type_invalid.beam
   |       rabbit_exchange_type_topic.beam
   |       rabbit_file.beam
   |       rabbit_framing.beam
   |       rabbit_guid.beam
   |       rabbit_hipe.beam
   |       rabbit_limiter.beam
   |       rabbit_log.beam
   |       rabbit_memory_monitor.beam
   |       rabbit_mirror_queue_coordinator.beam
   |       rabbit_mirror_queue_master.beam
   |       rabbit_mirror_queue_misc.beam
   |       rabbit_mirror_queue_mode.beam
   |       rabbit_mirror_queue_mode_all.beam
   |       rabbit_mirror_queue_mode_exactly.beam
   |       rabbit_mirror_queue_mode_nodes.beam
   |       rabbit_mirror_queue_slave.beam
   |       rabbit_mirror_queue_sync.beam
   |       rabbit_mnesia.beam
   |       rabbit_mnesia_rename.beam
   |       rabbit_msg_file.beam
   |       rabbit_msg_store.beam
   |       rabbit_msg_store_ets_index.beam
   |       rabbit_msg_store_gc.beam
   |       rabbit_node_monitor.beam
   |       rabbit_parameter_validation.beam
   |       rabbit_password.beam
   |       rabbit_password_hashing_md5.beam
   |       rabbit_password_hashing_sha256.beam
   |       rabbit_password_hashing_sha512.beam
   |       rabbit_plugins.beam
   |       rabbit_plugins_main.beam
   |       rabbit_plugins_usage.beam
   |       rabbit_policies.beam
   |       rabbit_policy.beam
   |       rabbit_prelaunch.beam
   |       rabbit_prequeue.beam
   |       rabbit_priority_queue.beam
   |       rabbit_queue_consumers.beam
   |       rabbit_queue_index.beam
   |       rabbit_queue_location_client_local.beam
   |       rabbit_queue_location_min_masters.beam
   |       rabbit_queue_location_random.beam
   |       rabbit_queue_location_validator.beam
   |       rabbit_queue_master_location_misc.beam
   |       rabbit_recovery_terms.beam
   |       rabbit_registry.beam
   |       rabbit_resource_monitor_misc.beam
   |       rabbit_restartable_sup.beam
   |       rabbit_router.beam
   |       rabbit_runtime_parameters.beam
   |       rabbit_sasl_report_file_h.beam
   |       rabbit_ssl.beam
   |       rabbit_sup.beam
   |       rabbit_table.beam
   |       rabbit_trace.beam
   |       rabbit_upgrade.beam
   |       rabbit_upgrade_functions.beam
   |       rabbit_variable_queue.beam
   |       rabbit_version.beam
   |       rabbit_vhost.beam
   |       rabbit_vm.beam
   |       supervised_lifecycle.beam
   |       tcp_listener.beam
   |       tcp_listener_sup.beam
   |       truncate.beam
   |       vm_memory_monitor.beam
   |       worker_pool.beam
   |       worker_pool_sup.beam
   |       worker_pool_worker.beam
   |
   +---etc
   |       rabbitmq.config.example
   |       README.txt
   |
   +---include
   |       gm_specs.hrl
   |       rabbit.hrl
   |       rabbit_cli.hrl
   |       rabbit_framing.hrl
   |       rabbit_misc.hrl
   |       rabbit_msg_store.hrl
   |
   +---plugins
   |       amqp_client-3.6.2.ez
   |       cowboy-1.0.3.ez
   |       cowlib-1.0.1.ez
   |       mochiweb-2.13.1.ez
   |       rabbitmq_amqp1_0-3.6.2.ez
   |       rabbitmq_auth_backend_ldap-3.6.2.ez
   |       rabbitmq_auth_mechanism_ssl-3.6.2.ez
   |       rabbitmq_consistent_hash_exchange-3.6.2.ez
   |       rabbitmq_event_exchange-3.6.2.ez
   |       rabbitmq_federation-3.6.2.ez
   |       rabbitmq_federation_management-3.6.2.ez
   |       rabbitmq_management-3.6.2.ez
   |       rabbitmq_management_agent-3.6.2.ez
   |       rabbitmq_management_visualiser-3.6.2.ez
   |       rabbitmq_mqtt-3.6.2.ez
   |       rabbitmq_recent_history_exchange-1.2.1.ez
   |       rabbitmq_sharding-0.1.0.ez
   |       rabbitmq_shovel-3.6.2.ez
   |       rabbitmq_shovel_management-3.6.2.ez
   |       rabbitmq_stomp-3.6.2.ez
   |       rabbitmq_tracing-3.6.2.ez
   |       rabbitmq_web_dispatch-3.6.2.ez
   |       rabbitmq_web_stomp-3.6.2.ez
   |       rabbitmq_web_stomp_examples-3.6.2.ez
   |       rabbit_common-3.6.2.ez
   |       ranch-1.2.1.ez
   |       README.txt
   |       sockjs-0.3.4.ez
   |       webmachine-1.10.3.ez
   |
   \---sbin
           rabbitmq-defaults.bat
           rabbitmq-echopid.bat
           rabbitmq-env.bat
           rabbitmq-plugins.bat
           rabbitmq-server.bat
           rabbitmq-service.bat
           rabbitmqctl.bat
为了方便操作rabbitmq,把rabbitmq设置到环境变量中


启动rabbitmq
C:\WINDOWS\system32>rabbitmq-service.bat start
停止rabbitmq
C:\WINDOWS\system32>rabbitmq-service.bat stop


注:

1、在安装的时候,不要使用中文或空格路径,包括安装和数据(日志)路径,如下面我当然用户的路径带有中文,就会出现以下错误:
C:\Users\奕能\AppData\Roaming\RabbitMQ\log
=INFO REPORT==== 2-Jul-2016::09:09:51 ===
Starting RabbitMQ 3.6.2 on Erlang 19.0
Copyright (C) 2007-2016 Pivotal Software, Inc.
Licensed under the MPL.  See http://www.rabbitmq.com/
=ERROR REPORT==== 2-Jul-2016::09:09:51 ===
Error in process <0.3.0> on node rabbit@huangyineng with exit value:
{badarg,
   [{io,format,
        [<0.53.0>,
         "~n~nBOOT FAILED~n===========~n~nError description:~n   ~p~n~nLog files (may contain more information):~n   ~s~n   ~s~n~n",
         [{could_not_start,rabbit,
              {badarg,
                  [{io,format,
                       [<0.140.0>,
                        "~n              ~s ~s. ~s~n  ##  ##      ~s~n  ##  ##~n  ##########  Logs: ~s~n  ######  ##        ~s~n  ##########~n              Starting broker...~n",
                        ["RabbitMQ","3.6.2",
                         "Copyright (C) 2007-2016 Pivotal Software, Inc.",
                         "Licensed under the MPL.  See http://www.rabbitmq.com/",
                         [67,58,47,85,115,101,114,115,47,22869,33021,47,65,
                          112,112,68,97,116,97,47,82,111,97,109,105,110,103,
                          47,82,97,98,98,105,116,77,81,47,108,111,103,47,82,
                          65,66,66,73,84,126,49,46,76,79,71],
                         [67,58,47,85,115,101,114,115,47,22869,33021,47,65,
                          112,112,68,97,116,97,47,82,111,97,109,105,110,103,
                          47,82,97,98,98,105,116,77,81,47,108,111,103,47,82,
                          65,66,66,73,84,126,50,46,76,79,71]]],
                       []},
                   {rabbit,start,2,[{file,"src/rabbit.erl"},{line,581}]},
                   {application_master,start_it_old,4,
                       [{file,"application_master.erl"},{line,273}]}]}},
          [67,58,47,85,115,101,114,115,47,22869,33021,47,65,112,112,68,97,
           116,97,47,82,111,97,109,105,110,103,47,82,97,98,98,105,116,77,81,
           47,108,111,103,47,82,65,66,66,73,84,126,49,46,76,79,71],
          [67,58,47,85,115,101,114,115,47,22869,33021,47,65,112,112,68,97,
           116,97,47,82,111,97,109,105,110,103,47,82,97,98,98,105,116,77,81,
           47,108,111,103,47,82,65,66,66,73,84,126,50,46,76,79,71]]],
        []},
    {rabbit,log_boot_error_and_exit,3,[{file,"src/rabbit.erl"},{line,640}]},
    {rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,411}]},
    {init,start_em,1,[{file,"init.erl"},{line,1077}]},
    {init,do_boot,3,[{file,"init.erl"},{line,785}]}]}


2、如果启动服务的时候,记得使用管理员命令提示符操作,如果用普通用户,会出现以下问题:
C:\Users\huangyineng>rabbitmq-service.bat start
C:\dev\erl8.0\erts-8.0\bin\erlsrv: Failed to start service RabbitMQ.
Error: ²Ù×÷³É¹¦Íê³É¡£


系列教程

大家都在看

热门访问