Shadow
rabbitmq-server line 85: erl: command not found 报错
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
发现正常了。
Dcr163的博客
https://www.dcr163.cn/627.html(转载时请注明本文出处及文章链接)
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?