targz-daemon.asciidoc 853 B

1234567891011121314151617181920212223242526
  1. ==== Run as a daemon
  2. To run Elasticsearch as a daemon, specify `-d` on the command line, and record
  3. the process ID in a file using the `-p` option:
  4. [source,sh]
  5. --------------------------------------------
  6. ./bin/elasticsearch -d -p pid
  7. --------------------------------------------
  8. If you have password-protected the {es} keystore, you will be prompted
  9. to enter the keystore's password. See <<secure-settings>> for more
  10. details.
  11. Log messages can be found in the `$ES_HOME/logs/` directory.
  12. To shut down Elasticsearch, kill the process ID recorded in the `pid` file:
  13. [source,sh]
  14. --------------------------------------------
  15. pkill -F pid
  16. --------------------------------------------
  17. NOTE: The {es} `.tar.gz` package does not include the `systemd` module. To
  18. manage {es} as a service, use the <<start-deb,Debian>> or <<start-rpm,RPM>>
  19. package instead.