Kann keinen Remote -Zugriff auf Rabbitmq Server erhaltenPython

Python-Programme
Anonymous
 Kann keinen Remote -Zugriff auf Rabbitmq Server erhalten

Post by Anonymous »

Ich kann keinen Remote -Zugriff auf den Rabbitmq -Server erhalten. Wenn ich dies auf einer Maschine mache und eine Verbindung zu Localhost: 15672 herstellen, funktioniert es, aber wenn ich es von einer Remote -Maschine probiere, ist dies nicht der Fall. < /p>

Ich habe bereits einen Benutzer mit allen Berechtigungen erstellt und überprüft, ob 5672 Port auf dem Computer funktioniert (habe gerade versucht, eine Verbindung zu ihm von einem Remote -Computer herzustellen). Außerdem habe ich versucht, eine Verbindung zu 15672 Port herzustellen, aber kein Ergebnis. < /P>

Code: Select all

credentials = pika.PlainCredentials(username= 'username', password='password')
parameters = pika.ConnectionParameters(host='188.19.100.226',
port=5672,
virtual_host= '/',
credentials=credentials)

connection = pika.BlockingConnection(parameters=parameters)
channel = connection.channel()

channel.queue_declare(queue='hello')

channel.basic_publish(exchange='',
routing_key='hello',
body=hello)
print ("Sent!")
connection.close()
< /code>

Ich erwarte, dass gesendet wird!, aber statt: < /p>

ERROR:pika.adapters.utils.io_services_utils:Socket failed to connect: ; error=111 (Connection refused)
ERROR:pika.adapters.utils.connection_workflow:TCP Connection attempt failed: ConnectionRefusedError(111, 'Connection refused'); dest=(, , 6, '', ('188.19.100.226', 5672))
ERROR:pika.adapters.utils.connection_workflow:AMQPConnector - reporting failure: AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused')
ERROR:pika.adapters.utils.connection_workflow:AMQP connection workflow failed: AMQPConnectionWorkflowFailed: 1 exceptions in all; last exception - AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused'); first exception - None.
ERROR:pika.adapters.utils.connection_workflow:AMQPConnectionWorkflow - reporting failure: AMQPConnectionWorkflowFailed: 1 exceptions in all; last exception - AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused'); first exception - None
ERROR:pika.adapters.blocking_connection:Connection workflow failed: AMQPConnectionWorkflowFailed: 1 exceptions in all; last exception - AMQPConnectorSocketConnectError: ConnectionRefusedError(111, 'Connection refused'); first exception - None
ERROR:pika.adapters.blocking_connection:Error in _create_connection().
Traceback (most recent call last):
File "/home/roman/PycharmProjects/trrp2/venv/lib/python3.6/site-packages/pika/adapters/blocking_connection.py", line 450, in _create_connection
raise self._reap_last_connection_workflow_error(error)
pika.exceptions.AMQPConnectionError
Traceback (most recent call last):
File "/home/roman/PycharmProjects/trrp2/send.py", line 52, in 
connection = pika.BlockingConnection(parameters=parameters)
File "/home/roman/PycharmProjects/trrp2/venv/lib/python3.6/site-packages/pika/adapters/blocking_connection.py", line 359, in __init__
self._impl = self._create_connection(parameters, _impl_class)
File "/home/roman/PycharmProjects/trrp2/venv/lib/python3.6/site-packages/pika/adapters/blocking_connection.py", line 450, in _create_connection
raise self._reap_last_connection_workflow_error(error)
pika.exceptions.AMQPConnectionError

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post