1. None of the specified endpoints were reachableThis exception is thrown when a connection is created (createconnection (), because the connectionfactory parameter is set incorrectly, such as hostname, username, and password Standard settings: var factory = new connectionfactory (); factory. username = queuesetttiong. username; // user name factory. password = queuesetttiong. password; // password factory. hostname = queuesetttiong. hostname; // rabbitmq service IP address, excluding the port factory. port = amqptcpendpoint. usedefaultport; factory. virtualhost = queuesetttiong. virtualhost; // The default value is "/" factory. protocol = protocols. defaultprotocol; after production is deployed, the factory configuration is OK, but the error "None of the specified endpoints were reachable" is still thrown. The cause is that the production machine firewall does not open the rabbitmq port, the default port of rabbitmq is 5672.
From Weizhi note (wiz)
Rabbitmq _ pitfall