作为root
,我按照说明here安装了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 (mockbuild@x86-034.build.eng.bos.redhat.com) (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安装说明here,这是我的安装方式。
对于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