You can also execute the command to find the installation location: whereis rabbitmq.
Note: everywhere, I am at /etc/rabbitmq.
edit
Add config _ file =/etc/rabbitmq/rabbitmq.conf to the file, save and exit.
Port valid
Execute the command: journalctl -xe at the prompt to see the reason for the failure.