Linux

服務 rabbitmq-server 啟動時“沒有這樣的文件或目錄”

  • June 17, 2019

因為,我按照這裡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 (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 安裝的說明。

對於二郎:

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

您執行的命令安裝和配置儲存庫。您似乎沒有安裝該軟體包。沒有輸出

rpm -qa | grep 兔子MQ

也是一個線索。

嘗試安裝它們

yum install rabbitmq-server erlang

引用自:https://serverfault.com/questions/971784