rabbitmq ubuntu
1. install
If you’re using Ubuntu or Debian install RabbitMQ by executing this command:
$ sudo apt-get install rabbitmq-server
When the command completes, the broker will already be running in the background, ready to move messages for you: Starting rabbitmq-server: SUCCESS
.
Don’t worry if you’re not running Ubuntu or Debian, you can go to this website to find similarly simple installation instructions for other platforms, including Microsoft Windows:
如果rabbitmq没有运行,可以手动运行:
alex@alex-VirtualBox:~/ykt$ sudo rabbitmq-server
[sudo] password for alex:
ERROR: node with name "rabbit" already running on "alex-VirtualBox"
2. check status
alex@alex-VirtualBox:~/ykt$ sudo rabbitmqctl -n rabbit status
Status of node 'rabbit@alex-VirtualBox'
[{pid,798},
{running_applications,
[{rabbitmq_management,"RabbitMQ Management Console","3.6.15"},
{rabbitmq_web_dispatch,"RabbitMQ Web Dispatcher","3.6.15"},
{rabbitmq_management_agent,"RabbitMQ Management Agent","3.6.15"},
{rabbit,"RabbitMQ","3.6.15"},
{cowboy,"Small, fast, modular HTTP server.","1.0.4"},
{ranch,"Socket acceptor pool for TCP protocols.","1.3.2"},
{ssl,"Erlang/OTP SSL application","7.3"},
{public_key,"Public key infrastructure","1.1.1"},
{amqp_client,"RabbitMQ AMQP Client","3.6.15"},
{rabbit_common,
"Modules shared by rabbitmq-server and rabbitmq-erlang-client",
"3.6.15"},
{compiler,"ERTS CXC 138 10","6.0.3"},
{os_mon,"CPO CXC 138 46","2.4"},
{inets,"INETS CXC 138 49","6.2"},
{mnesia,"MNESIA CXC 138 12","4.13.3"},
{cowlib,"Support library for manipulating Web protocols.","1.0.2"},
{crypto,"CRYPTO","3.6.3"},
{asn1,"The Erlang ASN1 compiler version 4.0.2","4.0.2"},
{recon,"Diagnostic tools for production use","2.3.2"},
{syntax_tools,"Syntax tools","1.7"},
{xmerl,"XML parser","1.3.10"},
{sasl,"SASL CXC 138 11","2.7"},
{stdlib,"ERTS CXC 138 10","2.8"},
{kernel,"ERTS CXC 138 10","4.2"}]},
{os,{unix,linux}},
{erlang_version,
"Erlang/OTP 18 [erts-7.3] [source] [64-bit] [async-threads:64] [kernel-poll:true]\n"},
{memory,
[{connection_readers,0},
{connection_writers,0},
{connection_channels,0},
{connection_other,2592},
{queue_procs,27776},
{queue_slave_procs,0},
{plugins,1240968},
{other_proc,21706112},
{metrics,54056},
{mgmt_db,416920},
{mnesia,66912},
{other_ets,2327480},
{binary,85080},
{msg_index,41448},
{code,27773585},
{atom,1000601},
{other_system,4367630},
{allocated_unused,16185928},
{reserved_unallocated,0},
{total,43667456}]},
{alarms,[]},
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"},{http,15672,"::"}]},
{vm_memory_calculation_strategy,rss},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,1259008819},
{disk_free_limit,50000000},
{disk_free,104531726336},
{file_descriptors,
[{total_limit,924},{total_used,3},{sockets_limit,829},{sockets_used,0}]},
{processes,[{limit,1048576},{used,327}]},
{run_queue,0},
{uptime,380867},
{kernel,{net_ticktime,60}}]
3. UI 管理 localhost:15672, 默认用户名密码: guest/guest