问题描述
我正在尝试在Linux机器上安装并能够运行Rabbitmqadmin.按照此处所述的说明进行操作.
I'm trying to install and be able to run rabbitmqadmin on a linux machine. Following the instructions described here do not help.
下载链接的文件后,它提示将文件(看起来像python脚本)复制到/usr/local/bin
.
After downloading the file linked, it prompts to copy the file (which looks like a python script) into /usr/local/bin
.
尝试通过简单地调用rabbitmqadmin
来运行它会导致rabbitmqadmin: command not found
.似乎在任何地方都没有有关如何使其正常工作的信息,并且假定该网站上列出的所有步骤都应适用于所有人.只是将python脚本复制到bin
文件夹,应该使它成为公认的命令,而不必每次都调用python解释器,这似乎很奇怪.
Trying to run it by simply invoking rabbitmqadmin
results in rabbitmqadmin: command not found
. There seems to be no information anywhere about how to get this to work and assumes that all the steps listed on the site should work for all. It seems odd that simply copying a python script to the bin
folder should allow it to become a recognised command without having to invoke the python interpreter every time.
感谢您的帮助.
推荐答案
RabbitMQ决定忽略一项重要信息.
RabbitMQ decided to omit one vital piece of information.
使用chmod +x
使脚本可执行,否则它将无法正常工作.
Make the script executable with chmod +x
otherwise it will fail to work.
这篇关于在Linux上安装Rabbitmqadmin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!