楼主今天在linux下启动rabbitmq的时候,发生了如下图的错误:

网上搜索得到了答案,现在分享给大家:

在linux的/etc/profile环境下添加如下两行代码:

#set erlang environment 
export PATH=$PATH:/usr/local/erlang20/bin

#set rabbitmq environment 
export PATH=$PATH:/usr/local/rabbitmq/sbin

这里需要注意到:

具体的PATH是要根据自己的安装路径来确定!

然后输入下面的代码使profile文件修改生效

source /etc/profile

最后重新启动rabbitmq就可以正常启动了:

GitHub 加速计划 / li / linux-dash
10
1
下载
A beautiful web dashboard for Linux
最近提交(Master分支:9 个月前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐