- 浏览: 292312 次
文章分类
- 全部博客 (148)
- Shell (2)
- Python (4)
- Java (31)
- Javascript (4)
- Android (7)
- SQL优化 (0)
- Linux (5)
- webOS (4)
- MySQL (18)
- memcach redis (1)
- memcach (0)
- redis (3)
- memcache (2)
- svn (1)
- UED (1)
- 网络 (1)
- virtual box (1)
- git (1)
- Gitosis (1)
- 云计算 (2)
- 12306 (1)
- google (1)
- spdy (1)
- nginx (1)
- tomcat (2)
- SSL (2)
- lucene (2)
- 空间搜索 (1)
- lzo (1)
- 数据压缩 (1)
- ios (1)
- maven (1)
- elasticsearch (1)
- scribe (1)
- flume (1)
- jni (1)
- jna (1)
- hadoop (2)
- 大数据 (1)
最新评论
-
aa80303857:
不错,学习了。互相关注一下。
Sitemesh学习笔记 -
xiaozang:
...
关于nginx的rewrite重写规则 -
coderuncle:
楼主有没有研究过cloudera flume和apache f ...
scribe,flume -
奔跑的犀牛:
...
linux下自动启动mysql -
lsn_1212:
网上装svn的资源太多了,这个挺好的,说的挺全的。
SVN Server安装部署攻略(Linux+SubVersion+Apache)
This is the manual page for rabbitmqctl(1). See a list of all manual pages. For more general documentation, please see the administrator's guide. RabbitMQ is an implementation of AMQP, the emerging standard for high performance enterprise messaging. The RabbitMQ server is a robust and scalable implementation of an AMQP broker. rabbitmqctl is a command line tool for managing a RabbitMQ broker. It performs all actions by connecting to one of the broker's nodes. [-n node] Default node is "rabbit@server", where server is the local host. On a host named "server.example.com", the node name of the RabbitMQ Erlang 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. See rabbitmq-server(1) for details of configuring the RabbitMQ broker. [-q] Quiet output mode is selected with the "-q" flag. Informational messages are suppressed when quiet mode is in effect. stop Stops the Erlang node on which RabbitMQ is running. To restart the node follow the instructions for Running the Server in theinstallation guide. For example: This command instructs the RabbitMQ node to terminate. stop_app Stops the RabbitMQ application, leaving the Erlang node running. This command is typically run prior to performing other management actions that require the RabbitMQ application to be stopped, e.g.reset. For example: This command instructs the RabbitMQ node to stop the RabbitMQ application. start_app Starts the RabbitMQ application. This command is typically run after performing other management actions that required the RabbitMQ application to be stopped, e.g.reset. For example: This command instructs the RabbitMQ node to start the RabbitMQ application. wait Wait for the RabbitMQ application to start. This command will wait for the RabbitMQ application to start at the node. As long as the Erlang node is up but the RabbitMQ application is down it will wait indefinitely. If the node itself goes down, or takes more than five seconds to come up, it will fail. For example: This command will return when the RabbitMQ node has started up. status Displays various information about the RabbitMQ broker, such as whether the RabbitMQ application on the current node, its version number, what nodes are part of the broker, which of these are running. For example: This command displays information about the RabbitMQ broker. reset Return a RabbitMQ node to its virgin state. Removes the node from any cluster it belongs to, removes all data from the management database, such as configured users and vhosts, and deletes all persistent messages. For reset and force_reset to succeed the RabbitMQ application must have been stopped, e.g. with stop_app. For example: This command resets the RabbitMQ node. force_reset Forcefully return a RabbitMQ node to its virgin state. The force_reset command differs from reset in that it resets the node unconditionally, regardless of the current management database state and cluster configuration. It should only be used as a last resort if the database or cluster configuration has been corrupted. For reset and force_reset to succeed the RabbitMQ application must have been stopped, e.g. with stop_app. For example: This command resets the RabbitMQ node. rotate_logs {suffix} Instruct the RabbitMQ node to rotate the log files. The RabbitMQ broker will attempt to append the current contents of the log file to the file with name composed of the original name and the suffix. It will create a new file if such a file does not already exist. When no suffix is specified, the empty log file is simply created at the original location; no rotation takes place. When an error occurs while appending the contents of the old log file, the operation behaves in the same way as if no suffix was specified. This command might be helpful when you are e.g. writing your own logrotate script and you do not want to restart the RabbitMQ node. For example: This command instructs the RabbitMQ node to append the current content of the log files to the files with names consisting of the original logs' names and ".1" suffix, e.g. rabbit.log.1. Finally, the old log files are reopened. cluster {clusternode ...} Subset of the nodes of the cluster to which this node should be connected. Instruct the node to become member of a cluster with the specified nodes. To cluster with currently offline nodes, use force_cluster. Cluster nodes can be of two types: disk or ram. Disk nodes replicate data in ram and on disk, thus providing redundancy in the event of node failure and recovery from global events such as power failure across all nodes. Ram nodes replicate data in ram only and are mainly used for scalability. A cluster must always have at least one disk node. If the current node is to become a disk node it needs to appear in the cluster node list. Otherwise it becomes a ram node. If the node list is empty or only contains the current node then the node becomes a standalone, i.e. non-clustered, (disk) node. After executing the cluster command, whenever the RabbitMQ application is started on the current node it will attempt to connect to the specified nodes, thus becoming an active node in the cluster comprising those nodes (and possibly others). The list of nodes does not have to contain all the cluster's nodes; a subset is sufficient. Also, clustering generally succeeds as long as at least one of the specified nodes is active. Hence adjustments to the list are only necessary if the cluster configuration is to be altered radically. For this command to succeed the RabbitMQ application must have been stopped, e.g. with stop_app. Furthermore, turning a standalone node into a clustered node requires the node be reset first, in order to avoid accidental destruction of data with the cluster command. For more details see the clustering guide. For example: This command instructs the RabbitMQ node to join the cluster with nodes rabbit@tanto and hare@elena. If the node is one of these then it becomes a disk node, otherwise a ram node. force_cluster {clusternode ...} Subset of the nodes of the cluster to which this node should be connected. Instruct the node to become member of a cluster with the specified nodes. This will succeed even if the specified nodes are offline. For a more detailed description, see cluster. Note that this variant of the cluster command just ignores the current status of the specified nodes. Clustering may still fail for a variety of other reasons. close_connection {connectionpid} {explanation} Id of the Erlang process associated with the connection to close. Explanation string. Instruct the broker to close the connection associated with the Erlang process id connectionpid (see also the list_connectionscommand), passing the explanation string to the connected client as part of the AMQP connection shutdown protocol. For example: This command instructs the RabbitMQ broker to close the connection associated with the Erlang process id <rabbit@tanto.4262.0>, passing the explanation go away to the connected client. Note that rabbitmqctl manages the RabbitMQ internal user database. Users from any alternative authentication backend will not be visible torabbitmqctl. add_user {username} {password} The name of the user to create. The password the created user will use to log in to the broker. For example: This command instructs the RabbitMQ broker to create a (non-administrative) user named tonyg with (initial) password changeit. delete_user {username} The name of the user to delete. For example: This command instructs the RabbitMQ broker to delete the user named tonyg. change_password {username} {newpassword} The name of the user whose password is to be changed. The new password for the user. For example: This command instructs the RabbitMQ broker to change the password for the user named tonyg to newpass. clear_password {username} The name of the user whose password is to be cleared. For example: This command instructs the RabbitMQ broker to clear the password for the user named tonyg. This user now cannot log in with a password (but may be able to through e.g. SASL EXTERNAL if configured). set_admin {username} The name of the user whose administrative status is to be set. For example: This command instructs the RabbitMQ broker to ensure the user named tonyg is an administrator. This has no effect when the user logs in via AMQP, but can be used to permit the user to manage users, virtual hosts and permissions when the user logs in via some other means (for example with the management plugin). clear_admin {username} The name of the user whose administrative status is to be cleared. For example: This command instructs the RabbitMQ broker to ensure the user named tonyg is not an administrator. list_users Lists users For example: This command instructs the RabbitMQ broker to list all users. Each result row will contain the user name and the administrator status of the user, in that order. Note that rabbitmqctl manages the RabbitMQ internal user database. Permissions for users from any alternative authorisation backend will not be visible to rabbitmqctl. add_vhost {vhostpath} The name of the virtual host entry to create. Creates a virtual host. For example: This command instructs the RabbitMQ broker to create a new virtual host called test. delete_vhost {vhostpath} The name of the virtual host entry to delete. Deletes a virtual host. Deleting a virtual host deletes all its exchanges, queues, user mappings and associated permissions. For example: This command instructs the RabbitMQ broker to delete the virtual host called test. list_vhosts Lists virtual hosts. For example: This command instructs the RabbitMQ broker to list all virtual hosts. set_permissions [-p vhostpath] {user} {conf} {write} {read} The name of the virtual host to which to grant the user access, defaulting to /. The name of the user to grant access to the specified virtual host. A regular expression matching resource names for which the user is granted configure permissions. A regular expression matching resource names for which the user is granted write permissions. A regular expression matching resource names for which the user is granted read permissions. Sets user permissions. For example: This command instructs the RabbitMQ broker to grant the user named tonyg access to the virtual host called /myvhost, with configure permissions on all resources whose names starts with "tonyg-", and write and read permissions on all resources. clear_permissions [-p vhostpath] {username} The name of the virtual host to which to deny the user access, defaulting to /. The name of the user to deny access to the specified virtual host. Sets user permissions. For example: This command instructs the RabbitMQ broker to deny the user named tonyg access to the virtual host called /myvhost. list_permissions [-p vhostpath] The name of the virtual host for which to list the users that have been granted access to it, and their permissions. Defaults to /. Lists permissions in a virtual host. For example: This command instructs the RabbitMQ broker to list all the users which have been granted access to the virtual host called /myvhost, and the permissions they have for operations on resources in that virtual host. Note that an empty string means no permissions granted. list_user_permissions [-p vhostpath] {username} The name of the user for which to list the permissions. Lists user permissions. For example: This command instructs the RabbitMQ broker to list all the virtual hosts to which the user named tonyg has been granted access, and the permissions the user has for operations on resources in these virtual hosts. The server status queries interrogate the server and return a list of results with tab-delimited columns. Some queries (list_queues,list_exchanges, list_bindings, and list_consumers) accept an optional vhost parameter. This parameter, if present, must be specified immediately after the query. The list_queues, list_exchanges and list_bindings commands accept an optional virtual host parameter for which to display results. The default value is "/". list_queues [-p vhostpath] [queueinfoitem ...] Returns queue details. Queue details of the / virtual host are returned if the "-p" flag is absent. The "-p" flag can be used to override this default. The queueinfoitem parameter is used to indicate which queue information items to include in the results. The column order in the results will match the order of the parameters. queueinfoitem can take any value from the list that follows: The name of the queue with non-ASCII characters escaped as in C. Whether or not the queue survives server restarts. Whether the queue will be deleted automatically when no longer used. Queue arguments.Table of Contents
Description
Options
Commands
Application and Cluster Management
rabbitmqctl stop
rabbitmqctl stop_app
rabbitmqctl start_app
rabbitmqctl wait
rabbitmqctl status
rabbitmqctl reset
rabbitmqctl force_reset
rabbitmqctl rotate_logs .1
Cluster management
rabbitmqctl cluster rabbit@tanto hare@elena
Closing individual connections
rabbitmqctl close_connection "<rabbit@tanto.4262.0>" "go away"
User management
rabbitmqctl add_user tonyg changeit
rabbitmqctl delete_user tonyg
rabbitmqctl change_password tonyg newpass
rabbitmqctl clear_password tonyg
rabbitmqctl set_admin tonyg
rabbitmqctl clear_admin tonyg
rabbitmqctl list_users
Access control
rabbitmqctl add_vhost test
rabbitmqctl delete_vhost test
rabbitmqctl list_vhosts
rabbitmqctl set_permissions -p /myvhost tonyg "^tonyg-.*" ".*" ".*"
rabbitmqctl clear_permissions -p /myvhost tonyg
rabbitmqctl list_permissions -p /myvhost
rabbitmqctl list_user_permissions tonyg
Server Status
发表评论
相关推荐
### RabbitMQ常用命令详解 #### 一、服务启动与关闭 **启动命令:** - `rabbitmq-server-detached`:启动RabbitMQ服务,并将其置于后台运行。 **关闭命令:** - `rabbitmqctl stop`:停止正在运行的RabbitMQ服务...
**RabbitMQ安装部署详解** RabbitMQ是一种广泛使用的开源消息代理和队列服务器,它基于AMQP(Advanced Message Queuing Protocol)协议实现,适用于多种编程语言,如Java、Python、Ruby等。在本文中,我们将详细...
- **添加用户**:使用 `rabbitmqctl add_user <username> <password>` 命令创建用户,例如: - `rabbitmqctl add_user test 123456` - `rabbitmqctl add_user scott tiger` - `rabbitmqctl add_user forest 1234`...
打开命令提示符(cmd),通过`cd`命令定位到RabbitMQ的安装目录,然后输入`rabbitmqctl status`。如果返回大量信息,表示RabbitMQ已经启动并且运行正常。 为了方便管理和监控RabbitMQ,我们需要启用Web管理界面。在...
如果遇到问题,可以查看RabbitMQ的日志文件,或者使用`rabbitmqctl status`和`rabbitmqctl report`命令获取系统状态信息。 通过以上内容,我们对RabbitMQ部署有了全面的了解,使用提供的部署脚本可以极大地简化这...
这可以通过`rabbitmqctl add_user`和`rabbitmqctl set_user_tags`命令添加用户和设置权限,`rabbitmqctl add_vhost`创建虚拟主机。 在所有这些步骤完成后,RabbitMQ就已经在你的Linux系统中成功安装并配置好了。...
这些依赖可以通过`yum`命令来安装: ```bash yum install gcc glibc-devel make ncurses-devel openssl-devel xmlto ``` #### 1.2 下载Erlang源代码 接下来,需要从Erlang官方网站下载Erlang的源代码。可以通过以下...
- **查看服务状态**:使用`rabbitmqctl status`命令来检查服务是否正常运行。 ```bash rabbitmqctl status ``` - **关闭服务**:通过`rabbitmqctl stop`命令来停止服务。 ```bash rabbitmqctl stop ``` ##...
同样地,使用 `rabbitmqctl` 命令来检查 RabbitMQ 的运行状态: ```bash ./rabbitmqctl status ``` ##### 用户管理 - **查看所有用户**:`./rabbitmqctl list_users` - **添加用户**:`./rabbitmqctl add_user ...
【RabbitMQ部署详解】 RabbitMQ是一款基于Erlang编程语言开发的消息中间件,它在分布式系统中广泛用于处理异步任务、实现解耦和负载均衡。在本文中,我们将详细阐述如何在CentOS 7.6操作系统上部署RabbitMQ 3.6.9...
### RabbitMQ集群在Linux下的搭建知识点详解 #### 一、实验环境配置 为了搭建一个可靠的RabbitMQ集群,首先需要确保所有的服务器节点都处于相同的网络环境中,并且具有稳定的网络连接。根据提供的信息,本实验环境...
- 若要确认服务是否成功启动,可以使用`rabbitmqctl status`命令。 4. **配置RabbitMQ**: - 默认情况下,RabbitMQ使用guest用户,并且只允许本地连接。为了远程访问,需要创建新用户并赋予相应权限。 - 在...
### RabbitMQ 单机与集群搭建详解 #### 一、单机环境搭建步骤 ##### 1. 安装基础依赖 在安装RabbitMQ之前,首先需要安装一系列的基础依赖库,确保系统支持后续的安装过程。 ```bash yum install -y gcc glibc-...
例如,你可以使用 `rabbitmqctl` 命令创建一个名为 `myuser` 的用户: ```bash rabbitmqctl add_user myuser mypassword ``` 接着,创建一个名为 `myvhost` 的虚拟主机: ```bash rabbitmqctl add_vhost myvhost ...
### RabbitMQ单台服务器搭建详解 #### 一、前言 在分布式系统中,消息队列作为异步处理的关键组件,被广泛应用于多种场景。RabbitMQ作为一种高性能且可靠的开源消息中间件,因其灵活的路由机制和丰富的客户端支持...
【RabbitMQ部署详解】 RabbitMQ是一款广泛使用的开源消息队列系统,基于AMQP(Advanced Message Queuing Protocol)协议,提供高可用性、可扩展性和健壮的可靠性。在部署RabbitMQ之前,首先需要确保系统环境具备...
这可以通过`rabbitmqctl add_user`、`rabbitmqctl set_user_tags`和`rabbitmqctl set_permissions`命令来完成。 其次,RabbitMQ的插件管理也非常重要。例如,`rabbitmq_management`插件提供了一个Web界面,方便监控...
### 安装RabbitMQ步骤详解 #### 一、前言 RabbitMQ是一款开源的消息代理和队列服务器,基于AMQP(高级消息队列协议)标准开发,提供了多种编程接口,可以支持多种消息传递模式。它能够在分布式系统中提供可靠的消息...
其他节点通过执行 `rabbitmqctl` 命令加入到集群中。例如,将 `rabbit_1` 加入到 `rabbit` 集群: ```bash rabbitmqctl -n rabbit_1@hostname stop_app rabbitmqctl -n rabbit_1@hostname reset rabbitmqctl -n ...
**RabbitMQ安装配置详解** RabbitMQ是一种广泛使用的开源消息代理和队列服务器,它基于AMQP(Advanced Message Queuing Protocol)协议,用于在分布式系统中高效地处理消息传递。在RHEL7(Red Hat Enterprise Linux...