标签归档文章: rabbitmq

rabbitmq 因为磁盘空间不足等问题无法重新启动的问题解决

当因为电源问题或者磁盘空间不足导致rabbitmq服务异常停止之后,再次重启无法启动的问题解决。
RabbitMQ 3.5.6. Copyright (C) 2007-2015 Pivotal Software, Inc.
## ## Licensed under the MPL. See http://www.rabbitmq.com/
## ##
########## Logs: /var/log/rabbitmq/[email protected]
###### ## /var/log/rabbitmq/[email protected]
##########
Starting broker...

BOOT FAILED
===========

Error description:
{could_not_start,rabbit,
{{badmatch,
{error,
{{{{case_clause,undefined},
[{rabbit_queue_index,add_segment_relseq_entry,3,[]},
{rabbit_queue_index,parse_segment_entries,3,[]},
{rabbit_queue_index,'-recover_journal/1-fun-0-',1,[]},
{lists,map,2,[{file,"lists.erl"},{line,1237}]},
{rabbit_queue_index,segment_map,2,[]},
{rabbit_queue_index,recover_journal,1,[]},
{rabbit_queue_index,scan_segments,3,[]},
{rabbit_queue_index,queue_index_walker_reader,2,[]}]},
{gen_server2,call,[<0.241.0>,out,infinity]}},
{child,undefined,msg_store_persistent,
{rabbit_msg_store,start_link,

更多…

rabbitmq服务安装及常用命令

 sudo rpm -ivh rabbitmq-server-3.5.6-1.noarch.rpm   //安装
 sudo service rabbitmq-server restart
 sudo rabbitmqctl add_user user "pass"// 添加用户
 sudo rabbitmqctl delete_user  passwordless-user  //删除用户
 sudo rabbitmqctl add_vhost /test   // 添加 vhost
 sudo rabbitmqctl list_vhosts  // 列出vhosts
 sudo rabbitmqctl list_permissions -p /test     // 查看vhost的权限
 sudo rabbitmqctl set_permissions -p /test user ".*" ".*" ".*"   // 设置权限 
 sudo rabbitmqctl list_permissions -p /test  // 查看权限