zip-targz-daemon.asciidoc 695 B

123456789101112131415161718192021
  1. ==== Running 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. Log messages can be found in the `$ES_HOME/logs/` directory.
  9. To shut down Elasticsearch, kill the process ID recorded in the `pid` file:
  10. [source,sh]
  11. --------------------------------------------
  12. pkill -F pid
  13. --------------------------------------------
  14. NOTE: The startup scripts provided in the <<rpm,RPM>> and <<deb,Debian>>
  15. packages take care of starting and stopping the Elasticsearch process for you.