rabbitMQ 服务端配置 (1) create by lee
2011-04-19 09:30
211 查看
Windows
1,下载
下载erlang:erlang.org
下载rabbitmq:http://www.rabbitmq.com/download.html
2,安装
先安装erlang,C:\Program Files\erl5.7.5
设置环境变量:ERLANG_HOME=C:\Program Files\erl5.7.5
解压rabbitmq,进入dos下,
>cd C:\rabbitmq_server-1.7.2\sbin
>rabbitmq-service install
3,启动
>cd C:\rabbitmq_server-1.7.2\sbin
>rabbitmq-service start
_____________________________
启动后、
C:\Program Files\RabbitMQ Server\rabbitmq_server-2.4.1\sbin>rabbitmqctl list_use
rs
Listing users ...
—————————————————————————————————————————— 输出用户
C:\Program Files\RabbitMQ Server\rabbitmq_server-2.4.1\sbin>rabbitmqctl list_vho
sts
Listing vhosts ...
/
...done.
————————————————————————————————————输出虚拟主机
C:\Program Files\RabbitMQ Server\rabbitmq_server-2.4.1\sbin>rabbitmqctl add_user
user password1
Creating user "user" ...
...done.
_________________________________________________________________新增用户
rabbitmqctl 所有命令:
Usage: rabbitmqctl [-q] [-n <node>] <command> [<arg> ...]
Available commands:
stop - stops the RabbitMQ application and halts the node
stop_app - stops the RabbitMQ application, leaving the node running
start_app - starts the RabbitMQ application on an already-running node
reset - resets node to default configuration, deleting all data
force_reset
cluster <ClusterNode> ...
status
rotate_logs [Suffix]
close_connection <ConnectionPid> <ExplanationString>
add_user <UserName> <Password>
delete_user <UserName>
change_password <UserName> <NewPassword>
list_users
add_vhost <VHostPath>
delete_vhost <VHostPath>
list_vhosts
set_permissions [-p <VHostPath>] <UserName> <Regexp> <Regexp> <Regexp>
clear_permissions [-p <VHostPath>] <UserName>
list_permissions [-p <VHostPath>]
list_user_permissions <UserName>
list_queues [-p <VHostPath>] [<QueueInfoItem> ...]
list_exchanges [-p <VHostPath>] [<ExchangeInfoItem> ...]
list_bindings [-p <VHostPath>]
list_connections [<ConnectionInfoItem> ...]
list_channels [<ChannelInfoItem> ...]
list_consumers [-p <VHostPath>]
Quiet output mode is selected with the "-q" flag. Informational
messages are suppressed when quiet mode is in effect.
<node> should be the name of the master node of the RabbitMQ
cluster. It defaults to the node named "rabbit" on the local
host. On a host named "server.example.com", the master node will
usually be rabbit@server (unless RABBITMQ_NODENAME has been set to
some non-default value at broker startup time). The output of hostname
-s is usually the correct suffix to use after the "@" sign.
The list_queues, list_exchanges and list_bindings commands accept an
optional virtual host parameter for which to display results. The
default value is "/".
<QueueInfoItem> must be a member of the list [name, durable,
auto_delete, arguments, pid, owner_pid, exclusive_consumer_pid,
exclusive_consumer_tag, messages_ready, messages_unacknowledged,
messages_uncommitted, messages, acks_uncommitted, consumers,
transactions, memory]. The default is to display name and (number of)
messages.
<ExchangeInfoItem> must be a member of the list [name, type, durable,
auto_delete, arguments]. The default is to display name and type.
The output format for "list_bindings" is a list of rows containing
exchange name, queue name, routing key and arguments, in that order.
<ConnectionInfoItem> must be a member of the list [pid, address, port,
peer_address, peer_port, state, channels, user, vhost, timeout,
frame_max, client_properties, recv_oct, recv_cnt, send_oct, send_cnt,
send_pend]. The default is to display user, peer_address, peer_port
and state.
<ChannelInfoItem> must be a member of the list [pid, connection,
number, user, vhost, transactional, consumer_count,
messages_unacknowledged, acks_uncommitted, prefetch_count]. The
default is to display pid, user, transactional, consumer_count,
messages_unacknowledged.
The output format for "list_consumers" is a list of rows containing,
in order, the queue name, channel process id, consumer tag, and a
boolean indicating whether acknowledgements are expected from the
consumer.
![](http://images.cnblogs.com/cnblogs_com/chenli0513/rabbitmq1.png)
参考资料 http://sunjun041640.blog.163.com/blog/static/25626832201032681053285/ rabbitmq学习 -5-server管理
/article/6177371.html rabbitmq 学习-2-安装
1,下载
下载erlang:erlang.org
下载rabbitmq:http://www.rabbitmq.com/download.html
2,安装
先安装erlang,C:\Program Files\erl5.7.5
设置环境变量:ERLANG_HOME=C:\Program Files\erl5.7.5
解压rabbitmq,进入dos下,
>cd C:\rabbitmq_server-1.7.2\sbin
>rabbitmq-service install
3,启动
>cd C:\rabbitmq_server-1.7.2\sbin
>rabbitmq-service start
_____________________________
启动后、
C:\Program Files\RabbitMQ Server\rabbitmq_server-2.4.1\sbin>rabbitmqctl list_use
rs
Listing users ...
—————————————————————————————————————————— 输出用户
C:\Program Files\RabbitMQ Server\rabbitmq_server-2.4.1\sbin>rabbitmqctl list_vho
sts
Listing vhosts ...
/
...done.
————————————————————————————————————输出虚拟主机
C:\Program Files\RabbitMQ Server\rabbitmq_server-2.4.1\sbin>rabbitmqctl add_user
user password1
Creating user "user" ...
...done.
_________________________________________________________________新增用户
rabbitmqctl 所有命令:
Usage: rabbitmqctl [-q] [-n <node>] <command> [<arg> ...]
Available commands:
stop - stops the RabbitMQ application and halts the node
stop_app - stops the RabbitMQ application, leaving the node running
start_app - starts the RabbitMQ application on an already-running node
reset - resets node to default configuration, deleting all data
force_reset
cluster <ClusterNode> ...
status
rotate_logs [Suffix]
close_connection <ConnectionPid> <ExplanationString>
add_user <UserName> <Password>
delete_user <UserName>
change_password <UserName> <NewPassword>
list_users
add_vhost <VHostPath>
delete_vhost <VHostPath>
list_vhosts
set_permissions [-p <VHostPath>] <UserName> <Regexp> <Regexp> <Regexp>
clear_permissions [-p <VHostPath>] <UserName>
list_permissions [-p <VHostPath>]
list_user_permissions <UserName>
list_queues [-p <VHostPath>] [<QueueInfoItem> ...]
list_exchanges [-p <VHostPath>] [<ExchangeInfoItem> ...]
list_bindings [-p <VHostPath>]
list_connections [<ConnectionInfoItem> ...]
list_channels [<ChannelInfoItem> ...]
list_consumers [-p <VHostPath>]
Quiet output mode is selected with the "-q" flag. Informational
messages are suppressed when quiet mode is in effect.
<node> should be the name of the master node of the RabbitMQ
cluster. It defaults to the node named "rabbit" on the local
host. On a host named "server.example.com", the master node will
usually be rabbit@server (unless RABBITMQ_NODENAME has been set to
some non-default value at broker startup time). The output of hostname
-s is usually the correct suffix to use after the "@" sign.
The list_queues, list_exchanges and list_bindings commands accept an
optional virtual host parameter for which to display results. The
default value is "/".
<QueueInfoItem> must be a member of the list [name, durable,
auto_delete, arguments, pid, owner_pid, exclusive_consumer_pid,
exclusive_consumer_tag, messages_ready, messages_unacknowledged,
messages_uncommitted, messages, acks_uncommitted, consumers,
transactions, memory]. The default is to display name and (number of)
messages.
<ExchangeInfoItem> must be a member of the list [name, type, durable,
auto_delete, arguments]. The default is to display name and type.
The output format for "list_bindings" is a list of rows containing
exchange name, queue name, routing key and arguments, in that order.
<ConnectionInfoItem> must be a member of the list [pid, address, port,
peer_address, peer_port, state, channels, user, vhost, timeout,
frame_max, client_properties, recv_oct, recv_cnt, send_oct, send_cnt,
send_pend]. The default is to display user, peer_address, peer_port
and state.
<ChannelInfoItem> must be a member of the list [pid, connection,
number, user, vhost, transactional, consumer_count,
messages_unacknowledged, acks_uncommitted, prefetch_count]. The
default is to display pid, user, transactional, consumer_count,
messages_unacknowledged.
The output format for "list_consumers" is a list of rows containing,
in order, the queue name, channel process id, consumer tag, and a
boolean indicating whether acknowledgements are expected from the
consumer.
![](http://images.cnblogs.com/cnblogs_com/chenli0513/rabbitmq1.png)
参考资料 http://sunjun041640.blog.163.com/blog/static/25626832201032681053285/ rabbitmq学习 -5-server管理
/article/6177371.html rabbitmq 学习-2-安装
相关文章推荐
- 环型一致性hash算法解读 create by lee [首篇]
- invade mysql 初学者学习mysql create by lee
- Windows RabbitMQ服务端安装与配置详解
- 反序列化网易miniblog json格式数据 原创 create by lee
- python之与mysql 交互 create by lee
- My first Django web page -hello now create by lee
- 浅尝python语法,挺有意思的与c#语法做了对比 原创 create by lee
- c#基础语法之 解读delegate create by lee
- RabbitMQ服务端配置详解(转自:http://www.cnblogs.com/zhen-rh/p/6884297.html)
- 快速备份指定的表 create by lee
- RabbitMQ服务端配置详解
- 有趣的问题:为什么磁盘的容量以1024为进制 create by lee
- 十六进制与十进制的相互转换 [ 原创create by lee ]
- 安装启动rabbitmq并配置远程访问web管理界面
- NHibernate Step By Step(1)-配置文件(Configuration)
- SVN服务端在Linux环境下的安装和配置
- 【转】Step By Step在VS2008中完整配置Ajax Toolkit的使用(配图)
- RabbitMQ学习系列 : RabbitMQ安装与配置
- Create AD Users by Powershell
- sharepoint 2010 配置用户同步连接出现错误信息" Unable to process Create message"的一个解决方法