Solve the problem of rabbitmq-plugins enable rabbitmq_delayed_message_exchange bash: rabbitmq-plugins: command not found...

scene description

First, make sure that rabbitmq_delayed_message_exchange has been uploaded to the plugins directory of rabbitmq_server-3.7.16. According to other tutorials, it is entered under the plugins of rabbitmq_server

[root@root plugins]# rabbitmq-plugins enable rabbitmq_delayed_message_exchange

But the following error occurs:

-bash: rabbitmq-plugins: No such file or directory

Solution

Then go to the sbin directory under the rabbitmq_server directory, you can see that there is a rabbitmq-plugins command

[root@root rabbitmq_server-3.7.16]# cd sbin
[root@root sbin]# ls

cuttlefish  rabbitmqctl  rabbitmq-defaults  rabbitmq-diagnostics  rabbitmq-env  rabbitmq-plugins  rabbitmq-server


But I tested it and it doesn't work

[root@root sbin]# rabbitmq-plugins enable rabbitmq_delayed_message_exchange
-bash: rabbitmq-plugins: No such file or directory

Why does this happen, because you want to join the current directory and use this command, the
current directory should be clear

[root@root sbin]# ./rabbitmq-plugins enable rabbitmq_delayed_message_exchange

insert image description here
solve!

Guess you like

Origin blog.csdn.net/m0_56184347/article/details/121625491