rabbitmq 启动报错

Posted lick468

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了rabbitmq 启动报错相关的知识,希望对你有一定的参考价值。

启动报错如下

./rabbitmq-server: line 47: erl: command not found

解决方案1 :在rabbitmq-server 中添加erlang的环境变量

# Lazy initialization of threed pool size - if it wasn‘t set
# explicitly. This parameter is only needed when server is starting,
# so it makes no sense to do this calculations in rabbitmq-env or
# rabbitmq-defaults scripts.

#  在这里添加erlang的环境变量
ERLANG_HOME=/usr/local/erlang23
export PATH=$PATH:$ERLANG_HOME/bin

ensure_thread_pool_size() {
    if [ -z "${RABBITMQ_IO_THREAD_POOL_SIZE}" ]; then
        RABBITMQ_IO_THREAD_POOL_SIZE=$(
            erl                 -noinput                 -boot "${CLEAN_BOOT_FILE}"                 -s rabbit_misc report_default_thread_pool_size
        )
    fi
}

解决方案2 :在/etc/profile中最后一行添加erlang的环境变量

cd /etc/profile
export PATH=$PATH:/usr/local/erlang23/bin
source /etc/profile 使之生效
技术图片
技术图片

技术图片





以上是关于rabbitmq 启动报错的主要内容,如果未能解决你的问题,请参考以下文章

rabbitmq 启动报错

Rabbitmq启动报错

linux 启动rabbitmq 报错:

SpringBoot启动报错“Consider defining a bean of type ‘xxx.mapper.UserMapper‘ in your configuration.“(代码片段

rabbitmq 启动报错

springboot rabbitMQ 启动报错