jw项目windows环境软件安装
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
996 B

1 year ago
  1. #!/bin/bash
  2. set -e -o pipefail
  3. source "`dirname "$0"`"/elasticsearch-env
  4. IFS=';' read -r -a additional_sources <<< "$ES_ADDITIONAL_SOURCES"
  5. for additional_source in "${additional_sources[@]}"
  6. do
  7. source "$ES_HOME"/bin/$additional_source
  8. done
  9. IFS=';' read -r -a additional_classpath_directories <<< "$ES_ADDITIONAL_CLASSPATH_DIRECTORIES"
  10. for additional_classpath_directory in "${additional_classpath_directories[@]}"
  11. do
  12. ES_CLASSPATH="$ES_CLASSPATH:$ES_HOME/$additional_classpath_directory/*"
  13. done
  14. # use a small heap size for the CLI tools, and thus the serial collector to
  15. # avoid stealing many CPU cycles; a user can override by setting ES_JAVA_OPTS
  16. ES_JAVA_OPTS="-Xms4m -Xmx64m -XX:+UseSerialGC ${ES_JAVA_OPTS}"
  17. exec \
  18. "$JAVA" \
  19. "$XSHARE" \
  20. $ES_JAVA_OPTS \
  21. -Des.path.home="$ES_HOME" \
  22. -Des.path.conf="$ES_PATH_CONF" \
  23. -Des.distribution.flavor="$ES_DISTRIBUTION_FLAVOR" \
  24. -Des.distribution.type="$ES_DISTRIBUTION_TYPE" \
  25. -cp "$ES_CLASSPATH" \
  26. "$ES_MAIN_CLASS" \
  27. "$@"