rabbitmq-defaults: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/lib/rabbitmq/bin/rabbitmq-defaults - from package: rabbitmq-server
/usr/lib/rabbitmq/lib/rabbitmq_server-3.1.5/sbin/rabbitmq-defaults - from package: rabbitmq-server

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/lib/rabbitmq/bin/rabbitmq-defaults - from package: rabbitmq-server
/usr/lib/rabbitmq/lib/rabbitmq_server-3.3.5/sbin/rabbitmq-defaults - from package: rabbitmq-server

You may install the required package with command apt-get install {package}
Error in other languages:
rabbitmq-defaults: bevel nie gevind nie
rabbitmq-defaults: comandă negăsită
rabbitmq-defaults: comando não encontrado
rabbitmq-defaults: commande introuvable
rabbitmq-defaults: command not found
rabbitmq-defaults: käsku ei ole
rabbitmq-defaults: không tìm thấy lệnh
rabbitmq-defaults: komanda nerasta
rabbitmq-defaults: Kommando nicht gefunden.
rabbitmq-defaults: kommandot finns inte
rabbitmq-defaults: komut yok
rabbitmq-defaults: nie znaleziono polecenia
rabbitmq-defaults: níor aimsíodh an t-ordú
rabbitmq-defaults: no se encontró la orden
rabbitmq-defaults: no s'ha trobat l'ordre
rabbitmq-defaults: opdracht niet gevonden
rabbitmq-defaults: parancs nem található
rabbitmq-defaults: perintah tidak ditemukan
rabbitmq-defaults: príkaz nenájdený
rabbitmq-defaults: příkaz nenalezen
rabbitmq-defaults: команда не найдена
rabbitmq-defaults: командата не е открита
rabbitmq-defaults: 命令找不到
rabbitmq-defaults: コマンドが見つかりません