Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; protocol method:

4856 단어 RabbitMQ
Exception in thread "main" java.io.IOException
	at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:106)
	at com.rabbitmq.client.impl.AMQChannel.wrap(AMQChannel.java:102)
	at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:124)
	at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:378)
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:678)
	at com.rabbitmq.client.ConnectionFactory.newConnection(ConnectionFactory.java:722)
	at upsmart.zhsen.ServerProducer.main(ServerProducer.java:33)
Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; protocol method: #method(reply-code=530, reply-text=NOT_ALLOWED - access to vhost '/' refused for user 'mq', class-id=10, method-id=40)
	at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:67)
	at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:33)
	at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:361)
	at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:226)
	at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:118)
	... 4 more

서버에 사용자가 할당된 권한이 없습니다.
rabbitmqctl set_permissions -p "/"username ".*"".*"".*"
우선, 사용자가 추가되지 않으면 사용자가 추가됩니다. rabbitmq-server는 Guest 사용자가 하나입니다.
rabbitmqctl add_user username password
사용자 삭제
rabbitmqctl delete_user guest
rabbitmqcrl 명령 매개 변수
    stop []
    stop_app
    start_app
    wait 
    reset
    force_reset
    rotate_logs 
    hipe_compile 
    join_cluster  [--ram]
    cluster_status
    change_cluster_node_type disc | ram
    forget_cluster_node [--offline]
    rename_cluster_node oldnode1 newnode1 [oldnode2] [newnode2 ...]
    update_cluster_nodes clusternode
    force_boot
    sync_queue [-p ] queue
    cancel_sync_queue [-p ] queue
    purge_queue [-p ] queue
    set_cluster_name name
    add_user  
    delete_user 
    change_password  
    clear_password 
    authenticate_user  
    set_user_tags   ...
    list_users
    add_vhost 
    delete_vhost 
    list_vhosts [ ...]
    set_permissions [-p ]    
    clear_permissions [-p ] 
    list_permissions [-p ]
    list_user_permissions 
    set_parameter [-p ]   
    clear_parameter [-p ]  
    list_parameters [-p ]
    set_policy [-p ] [--priority ] [--apply-to ]    
    clear_policy [-p ] 
    list_policies [-p ]
    list_queues [-p ] [--offline|--online|--local] [ ...]
    list_exchanges [-p ] [ ...]
    list_bindings [-p ] [ ...]
    list_connections [ ...]
    list_channels [ ...]
    list_consumers [-p ]
    status
    node_health_check
    environment
    report
    eval 
    close_connection  
    trace_on [-p ]
    trace_off [-p ]
    set_vm_memory_high_watermark 
    set_vm_memory_high_watermark absolute 
    set_disk_free_limit 
    set_disk_free_limit mem_relative 
    encode [--decode] [] [] [--list-ciphers] [--list-hashes] 
	   [--cipher ] [--hash ] [--iterations ]

좋은 웹페이지 즐겨찾기