osx - RabbitMQ command doesn't exist? -
os: mac osx 10.9
i have rabbitmq installed via home brew , when go /usr/local/sbin , run rabbitmq-server states that: rabbitmq-server: command not found sudo states same error.
how rabbitmq start if it's not command? have tried chmod +x rabbitmq-server in directory executable, same issue.
from docs:
the rabbitmq server scripts installed /usr/local/sbin. not automatically added path, may wish add path=$path:/usr/local/sbin .bash_profile or .profile. server can started rabbitmq-server.
all scripts run under own user account. sudo not required.
you should able run /usr/local/sbin/rabbitmq-server or add path run anywhere.
your command failed because, default, . not on $path. went right directory (/usr/local/sbin) , wanted run rabbitmq-server existed , had exec permissions, typing rabbitmq-server command unix searches command on $path directories - didn't include /usr/local/sbin.
what wanted can achieved typing ./rabbitmq-server - say, execute rabbitmq-server program in current directory. that's analogous running /usr/local/sbin/rabbitmq-server everywhere - . represents current directory, it's same /usr/local/sbin in context.
Comments
Post a Comment