TypechoJoeTheme

Dcr163的博客

统计

rabbitmq-server line 85: erl: command not found 报错

2022-02-26
/
1 评论
/
27,190 阅读
/
正在检测是否收录...
02/26

RabbitMQ 使用systemctl 启动命令报错

RabbitMQ自启动文件,文件位置/lib/systemd/system/RabbitMQ.service

[Unit]
#RabbitMQ服务自启动
Description=RabbitMQ
After=network.target

[Service]
Type=forking
User=root
Group=root
ExecStart=/usr/local/rabbitmq/sbin/rabbitmq-server -detached
ExecStop=/usr/local/rabbitmq/sbin/rabbitmqctl shutdown
PrivateTmp=true
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

使用 systemctl start RabbitMQ.service 启动rabbmitmq的时候报错

报错详情:/usr/local/rabbitmq/sbin/rabbitmq-server line 85: erl: command not found

解决办法,编辑文件:/usr/local/rabbitmq/sbin/rabbitmq-server

在 大概187行下方新增 NOTIFY_SOCKET= \这行的上方

ERLANG_HOME=/usr/local/erlang
export PATH=$PATH:$ERLANG_HOME/bin

保存并退出,再次使用 systemctl start RabbitMQ.service 发现正常了。

朗读
赞(1)
版权属于:

Dcr163的博客

本文链接:

https://www.dcr163.cn/627.html(转载时请注明本文出处及文章链接)

评论 (1)
  1. I comment each time I especially enjoy a article onn a site or if I havbe something too valuable to contribute to the discussion. It iss caused by thhe passion communicated
    in the article I looked at. And after this post rabbitmq-server line 85:
    erl: command not found 报错 - Dcr163的博客.
    I wass actually moved enough to create a comment :-)
    I actually do have a couple of questions for you iff you don't mind.
    Could it bbe simply me or do a few of these remarks appear
    as if thry are left by brain dead people?
    :-P And, if you are wrriting at additional sites, I'd like too keep up with anything new
    you have too post. Would you list every oone of all your
    shared pages like your titter feed, Facebook page or
    linkedin profile?

    2025-04-12 回复

人生倒计时

今日已经过去小时
这周已经过去
本月已经过去
今年已经过去个月

最新回复

  1. https://Sites.google.com/view/vavada-online-casino
    2025-04-12
  2. https://x.com/jeetbuzzcom
    2025-04-07
  3. prozone.cc alternative
    2025-03-19
  4. urgent delivery
    2025-03-16
  5. faster indexing
    2025-03-05

标签云