我是使用rabbitmq的新手,我使用的是Windows 10.我安装了rabbitmq-server和pika库。我试图使用本教程来了解rabbitmq的工作原理tutorial here 我收到以下错误:
File "C:/Users/laysa/Documents/Python Scripts/send.py", line 9, in <module>
connection = pika.BlockingConnection(pika.ConnectionParameters('127.0.0.1'))
File "C:\Users\laysa\Anaconda3\lib\site-packages\pika\adapters\blocking_connection.py", line 374, in __init__
self._process_io_for_connection_setup()
File "C:\Users\laysa\Anaconda3\lib\site-packages\pika\adapters\blocking_connection.py", line 414, in _process_io_for_connection_setup
self._open_error_result.is_ready)
File "C:\Users\laysa\Anaconda3\lib\site-packages\pika\adapters\blocking_connection.py", line 468, in _flush_output
raise exceptions.ConnectionClosed(maybe_exception)
ConnectionClosed: Connection to 127.0.0.1:5672 failed: timeout
我尝试使用here上的解决方案,但它没有解决我的问题。
提前谢谢你, (我对rabbitmq很新)