I have rabbit mq binaries i.e. rabbitmq_server-3.8.3. I have installed erlang using following command sudo yum localinstall erlang-22.0.1-1.el7.x86_64.rpm