rabbitmq是amqp协议,代码中慢慢就多了协议相关的东西。需要参考amqp协议。
rabbitmq启动过程:
C:\Documents and Settings\\rabbitmq-server-windows-1.7.0\rabbitmq_server-1.7.0\ebin>erl -boot start_sasl
=PROGRESS REPORT==== 24-Jan-2010::09:13:15 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.33.0>},
{name,alarm_handler},
{mfa,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:15 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.34.0>},
{name,overload},
{mfa,{overload,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:15 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.32.0>},
{name,sasl_safe_sup},
{mfa,
{supervisor,start_link,
[{local,sasl_safe_sup},sasl,safe]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:15 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.35.0>},
{name,release_handler},
{mfa,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:15 ===
application: sasl
started_at: nonode@nohost
Eshell V5.7.3 (abort with ^G)
1> rabbit:start().
=PROGRESS REPORT==== 24-Jan-2010::09:13:24 ===
supervisor: {local,os_mon_sup}
started: [{pid,<0.45.0>},
{name,os_mon_sysinfo},
{mfa,{os_mon_sysinfo,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:24 ===
supervisor: {local,os_mon_sup}
started: [{pid,<0.46.0>},
{name,disksup},
{mfa,{disksup,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:24 ===
supervisor: {local,os_mon_sup}
started: [{pid,<0.47.0>},
{name,memsup},
{mfa,{memsup,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:24 ===
application: os_mon
started_at: nonode@nohost
=PROGRESS REPORT==== 24-Jan-2010::09:13:24 ===
supervisor: {local,kernel_safe_sup}
started: [{pid,<0.53.0>},
{name,timer_server},
{mfa,{timer,start_link,[]}},
{restart_type,permanent},
{shutdown,1000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:24 ===
supervisor: {local,mnesia_sup}
started: [{pid,<0.54.0>},
{name,mnesia_event},
{mfa,{mnesia_sup,start_event,[]}},
{restart_type,permanent},
{shutdown,30000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:24 ===
supervisor: {local,mnesia_kernel_sup}
started: [{pid,<0.56.0>},
{name,mnesia_monitor},
{mfa,{mnesia_monitor,start,[]}},
{restart_type,permanent},
{shutdown,3000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:24 ===
supervisor: {local,mnesia_kernel_sup}
started: [{pid,<0.57.0>},
{name,mnesia_subscr},
{mfa,{mnesia_subscr,start,[]}},
{restart_type,permanent},
{shutdown,3000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:24 ===
supervisor: {local,mnesia_kernel_sup}
started: [{pid,<0.58.0>},
{name,mnesia_locker},
{mfa,{mnesia_locker,start,[]}},
{restart_type,permanent},
{shutdown,3000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
supervisor: {local,mnesia_kernel_sup}
started: [{pid,<0.59.0>},
{name,mnesia_recover},
{mfa,{mnesia_recover,start,[]}},
{restart_type,permanent},
{shutdown,180000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
supervisor: {local,kernel_safe_sup}
started: [{pid,<0.61.0>},
{name,dets_sup},
{mfa,{dets_sup,start_link,[]}},
{restart_type,permanent},
{shutdown,1000},
{child_type,supervisor}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
supervisor: {local,kernel_safe_sup}
started: [{pid,<0.62.0>},
{name,dets},
{mfa,{dets_server,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
supervisor: {local,kernel_safe_sup}
started: [{pid,<0.66.0>},
{name,disk_log_sup},
{mfa,{disk_log_sup,start_link,[]}},
{restart_type,permanent},
{shutdown,1000},
{child_type,supervisor}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
supervisor: {local,kernel_safe_sup}
started: [{pid,<0.67.0>},
{name,disk_log_server},
{mfa,{disk_log_server,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
supervisor: {local,mnesia_kernel_sup}
started: [{pid,<0.60.0>},
{name,mnesia_tm},
{mfa,{mnesia_tm,start,[]}},
{restart_type,permanent},
{shutdown,30000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
supervisor: {local,mnesia_kernel_sup}
started: [{pid,<0.78.0>},
{name,mnesia_checkpoint_sup},
{mfa,{mnesia_checkpoint_sup,start,[]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
supervisor: {local,mnesia_kernel_sup}
started: [{pid,<0.79.0>},
{name,mnesia_snmp_sup},
{mfa,{mnesia_snmp_sup,start,[]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
supervisor: {local,mnesia_kernel_sup}
started: [{pid,<0.80.0>},
{name,mnesia_controller},
{mfa,{mnesia_controller,start,[]}},
{restart_type,permanent},
{shutdown,3000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
supervisor: {local,mnesia_kernel_sup}
started: [{pid,<0.81.0>},
{name,mnesia_late_loader},
{mfa,{mnesia_late_loader,start,[]}},
{restart_type,permanent},
{shutdown,3000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
supervisor: {local,mnesia_sup}
started: [{pid,<0.55.0>},
{name,mnesia_kernel_sup},
{mfa,{mnesia_kernel_sup,start,[]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:25 ===
application: mnesia
started_at: nonode@nohost
+---+ +---+
| | | |
| | | |
| | | |
| +---+ +-------+
| |
| RabbitMQ +---+ |
| | | |
| v1.7.0 +---+ |
| |
+-------------------+
AMQP 8-0
Copyright (C) 2007-2009 LShift Ltd., Cohesive Financial Technologies LLC., and Rabbit Technologies Ltd.
Licensed under the MPL. See
node : nonode@nohost
app descriptor: c:/Documents and Settings//rabbitmq-server-windows-1.7.0/rabbitmq_server-1.7.0/ebin/rabbit.app
home dir : C:\Documents and Settings\dexiang.zhang
cookie hash : 92vmrXD/iLl+OKWxh4sEhQ==
log : tty
sasl log : tty
database dir : c:/Documents and Settings/rabbitmq-server-windows-1.7.0/rabbitmq_server-1.7.0/ebin/Mnesia.nonode@nohost
starting database ...done
starting core processes ...
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {local,rabbit_sup}
started: [{pid,<0.117.0>},
{name,rabbit_log},
{mfa,{rabbit_log,start_link,[]}},
{restart_type,transient},
{shutdown,100},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {local,rabbit_sup}
started: [{pid,<0.118.0>},
{name,rabbit_amqqueue_sup},
{mfa,{rabbit_amqqueue_sup,start_link,[]}},
{restart_type,transient},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {local,rabbit_sup}
started: [{pid,<0.119.0>},
{name,rabbit_router},
{mfa,{rabbit_router,start_link,[]}},
{restart_type,transient},
{shutdown,100},
{child_type,worker}]
done
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {local,rabbit_sup}
started: [{pid,<0.120.0>},
{name,rabbit_node_monitor},
{mfa,{rabbit_node_monitor,start_link,[]}},
{restart_type,transient},
{shutdown,100},
{child_type,worker}]
starting recovery ...done
starting persister ...
=INFO REPORT==== 24-Jan-2010::09:13:26 ===
disk_log: repairing "c:/Documents and Settings//rabbitmq-server-windows-1.7.0/rabbitmq_server-1.7.0/ebin/Mnesia.nonode@nohost/rabbit
_persister.LOG" ...
=INFO REPORT==== 24-Jan-2010::09:13:26 ===
Repaired persister log - 1 recovered, 0 bad
=INFO REPORT==== 24-Jan-2010::09:13:26 ===
Rolling persister log to "c:/Documents and Settings/rabbitmq-server-windows-1.7.0/rabbitmq_server-1.7.0/ebin/Mnesia.nonode@nohost/r
abbit_persister.LOG.previous"
done
starting guid generator ...
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {local,rabbit_sup}
started: [{pid,<0.122.0>},
{name,rabbit_persister},
{mfa,{rabbit_persister,start_link,[]}},
{restart_type,transient},
{shutdown,100},
{child_type,worker}]
done
starting builtin applications ...
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {local,rabbit_sup}
started: [{pid,<0.126.0>},
{name,rabbit_guid},
{mfa,{rabbit_guid,start_link,[]}},
{restart_type,transient},
{shutdown,100},
{child_type,worker}]
done
starting TCP listeners ...
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {local,rabbit_sup}
started: [{pid,<0.127.0>},
{name,rabbit_tcp_client_sup},
{mfa,
{tcp_client_sup,start_link,
[{local,rabbit_tcp_client_sup},
{rabbit_reader,start_link,[]}]}},
{restart_type,transient},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {local,inet_gethost_native_sup}
started: [{pid,<0.129.0>},{mfa,{inet_gethost_native,init,[[]]}}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {local,kernel_safe_sup}
started: [{pid,<0.128.0>},
{name,inet_gethost_native_sup},
{mfa,{inet_gethost_native,start_link,[]}},
{restart_type,temporary},
{shutdown,1000},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {<0.130.0>,tcp_listener_sup}
started: [{pid,<0.131.0>},
{name,tcp_acceptor_sup},
{mfa,
{tcp_acceptor_sup,start_link,
['tcp_acceptor_sup_0.0.0.0:5672',
{rabbit_networking,start_client,[]}]}},
{restart_type,transient},
{shutdown,infinity},
{child_type,supervisor}]
done
starting SSL listeners ...done
broker running
=INFO REPORT==== 24-Jan-2010::09:13:26 ===
started TCP Listener on 0.0.0.0:5672
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {<0.130.0>,tcp_listener_sup}
started: [{pid,<0.132.0>},
{name,tcp_listener},
{mfa,
{tcp_listener,start_link,
[{0,0,0,0},
5672,
[binary,
{packet,raw},
{reuseaddr,true},
{exit_on_close,false}],
1,'tcp_acceptor_sup_0.0.0.0:5672',
{rabbit_networking,tcp_listener_started,[]},
{rabbit_networking,tcp_listener_stopped,[]},
"TCP Listener"]}},
{restart_type,transient},
{shutdown,100},
{child_type,worker}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
supervisor: {local,rabbit_sup}
started: [{pid,<0.130.0>},
{name,'rabbit_tcp_listener_sup_0.0.0.0:5672'},
{mfa,
{tcp_listener_sup,start_link,
[{0,0,0,0},
5672,
[binary,
{packet,raw},
{reuseaddr,true},
{exit_on_close,false}],
{rabbit_networking,tcp_listener_started,[]},
{rabbit_networking,tcp_listener_stopped,[]},
{rabbit_networking,start_client,[]},
"TCP Listener"]}},
{restart_type,transient},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 24-Jan-2010::09:13:26 ===
application: rabbit
started_at: nonode@nohost
ok
2>
阅读(2497) | 评论(0) | 转发(0) |