因为root
,我按照说明安装了 RabbitMQ这里。然后我做了:
cd /sbin
sudo service rabbitmq-server start
...我得到了...
Redirecting to /bin/systemctl start rabbitmq-server.service
Failed to start rabbitmq-server.service: Unit rabbitmq-server.service failed to load: No such file or directory.
Linux 信息:
>cat /proc/version
Linux version 3.10.0-327.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Oct 29 17:29:29 EDT 2015
>cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
知道我做错了什么吗?
编辑#1: 以下是一些附加信息:
>systemctl status rabbitmq-server
● rabbitmq-server.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
编辑#2 更多信息:
>rpm -qa | grep rabbitmq
>
(基本无输出)
以下是我按照说明安装的方法这里关于Package Cloud的安装。
对于 Erlang:
curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
对于 rabbitmq:
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
答案1
您运行的命令安装并配置了存储库。您似乎没有安装该软件包。没有输出
rpm -qa | grep rabbitmq
也是一个线索。
尝试使用以下方式安装
yum install rabbitmq-server erlang