搜索

kibana启动

kibana启动报unable to find usable node.js executable.
头像
1789 次浏览2019.12.27 提问
50

最新回答(1条回答)

头像
2020.01.02 回答

请检查$node环境变量是否配置正确

满意记得采纳哦

#!/bin/sh

SCRIPT=$0

# SCRIPT may be an arbitrarily deep series of symlinks. Loop until we have the concrete path.

while [ -h "$SCRIPT" ] ; do

  ls=$(ls -ld "$SCRIPT")

  # Drop everything prior to ->

  link=$(expr "$ls" : '.*-> \(.*\)$')

  if expr "$link" : '/.*' > /dev/null; then

    SCRIPT="$link"

  else

    SCRIPT=$(dirname "$SCRIPT")/"$link"

  fi

done

DIR="$(dirname "${SCRIPT}")/.."

NODE="${DIR}/node/bin/node"

test -x "$NODE" || NODE=$(which node)

if [ ! -x "$NODE" ]; then

  echo "unable to find usable node.js executable."

  exit 1

fi

NODE_ENV=production exec "${NODE}" $NODE_OPTIONS --max_old_space_size=3072 --no-warnings "${DIR}/src/cli" ${@}

 

抢首赞
置顶