./rabbitmq-server: line 47: erl: command not found
# 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
}
cd /etc/profile
export PATH=$PATH:/usr/local/erlang23/bin
source /etc/profile
使之生效
原文:https://www.cnblogs.com/lick468/p/13159465.html