Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

target machine actively refused connection #99

Closed
hajsf opened this issue Jul 10, 2022 · 1 comment
Closed

target machine actively refused connection #99

hajsf opened this issue Jul 10, 2022 · 1 comment

Comments

@hajsf
Copy link

hajsf commented Jul 10, 2022

Trying the example code, but got the below:

PS D:\Deployment\mqtt\simple-producer> go run publisher
2022/07/10 20:21:04 [INFO] dialing "amqp://guest:guest@localhost:5672/"
2022/07/10 20:21:06 [ERROR] Dial: dial tcp [::1]:5672: connectex: No connection could be made because the target machine actively refused it.
exit status 1
@Gsantomaggio
Copy link
Member

RabbitMQ is not running on localhost.

Make sure RabbitMQ is running and the listening port 5672 is open.

Try to test using telnet localhost 5672

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants