I have a beego project on my Mac:
Here is a configuration file MQ_ config.go :
const (
mqHost = "109.196.82.110"
mqPort = "61613"
...
I execute:
go build
./generated_file //execute the generated file
report errors:
2020/06/28 11:43:32.432 [I] [router.go:270] /Users/dele/go/src/dpy/jhagent/controllers no changed
2020/06/28 11:43:32.483 [E] [proc.go:5420] link active mq failed: dial tcp 109.196.82.110:61613: connect: connection refused
So I knew that was the reason for ActiveMQ, so I installed ActiveMQ on my Mac and changed MQ_ config.go File:
const (
mqHost = "127.0.0.1"
mqPort = "61613"
...
Delete the generated file, recompile, and run, but still report this error: Dial TCP 109.196.82.110:61613: Connect: connection reused error
I searched the whole project, only this configuration file has 109.196.82.110 IP. What's the reason for this error? Why is it still a problem to change the configuration file and recompile?