For example, on my Red Hat Enterprise Linux 7.2 there are/etc/rc.d/init.d/rabbitmq-server/etc/logrotate.d/rabbitmq-server/usr/sbin/rabbitmq-server/usr/lib/ocf/resource.d/rabbitmq/rabbitmq-servermore than 4 'kinds' of rabbitmq-server (in fact there are 2 other ones ), are they the same thing? I mean, if I want to start rabbitmq can I use either of those command rabbitmq-server?
Are same name in different directory the same thing?
files;directory;directory structure
No, they are totally different and have different content.For example I haveA/fileB/file$ cat A/filehello$ cat B/filethereWe can see they say different things.In your case:/etc/rc.d/init.d/rabbitmq-server - this will be the startup at boot time script/etc/logrotate.d/rabbitmq-server - this will manage the log files/usr/sbin/rabbitmq-server - this is the main server program that's started by the init script/usr/lib/ocf/resource.d/rabbitmq/rabbitmq-server - this is part of your HA configuration.So all 4 files do different things.