服务器端配置 /usr/local/rab
bitmq/sbin/rabbitmqctl list_queues -p que_name
/usr/local/rabbitmq/sbin/rabbitmqctl status
查看状态
/usr/local/rabbitmq/sbin/rabbitmqctl status
查看队列
/usr/local/rabbitmq/sbin/rabbitmqctl list_queues -p queue_name
停止mq
/usr/local/rabbitmq/sbin/rabbitmqctl stop;sleep 1
/usr/local/rabbitmq/sbin/rabbitmqctl stop_app;sleep 1
/usr/local/rabbitmq/sbin/rabbitmqctl stop;sleep 1
/usr/local/rabbitmq/sbin/rabbitmq-server -detached
sleep 2
增加用户和密码
rabbitmqctl add_user app_name app_passwd
增加虚拟主机
rabbitmqctl add_vhost $vhost
设置虚拟主机对应的用户名
rabbitmqctl set_permissions -p $vhost app_name ".*" ".*" ".*"
阅读(667) | 评论(0) | 转发(0) |