rpm-init.asciidoc 694 B

1234567891011121314151617181920
  1. ==== Running Elasticsearch with SysV `init`
  2. Use the `chkconfig` command to configure Elasticsearch to start automatically
  3. when the system boots up:
  4. [source,sh]
  5. --------------------------------------------------
  6. sudo chkconfig --add elasticsearch
  7. --------------------------------------------------
  8. Elasticsearch can be started and stopped using the `service` command:
  9. [source,sh]
  10. --------------------------------------------
  11. sudo -i service elasticsearch start
  12. sudo -i service elasticsearch stop
  13. --------------------------------------------
  14. If Elasticsearch fails to start for any reason, it will print the reason for
  15. failure to STDOUT. Log files can be found in `/var/log/elasticsearch/`.