Logstash Rabbitmq connection refused?

I am using multiple instances using logstash, First I get an error multiple instance error when I resolved that error. Now I am getting a new error.

[ERROR][logstash.inputs.rabbitmq ] RabbitMQ connection error, will retry. 
{:error_message=>"Connection to localhost:5672 refused", 
:exception=>"MarchHare::ConnectionRefused"}

I have a config file in config.d that is running in the background because one of my project running on production.

I also change the --path.data directory after that I am getting above an error.