zip-windows-start.asciidoc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ==== Run {es} from the command line
  2. Run the following command to start {es} from the command line:
  3. [source,sh]
  4. ----
  5. .\bin\elasticsearch.bat
  6. ----
  7. When starting {es} for the first time, security features are enabled and
  8. configured by default. The following security configuration occurs
  9. automatically:
  10. * Authentication and authorization are enabled, and a password is generated for
  11. the `elastic` built-in superuser.
  12. * Certificates and keys for TLS are generated for the transport and HTTP layer,
  13. and TLS is enabled and configured with these keys and certificates.
  14. * An enrollment token is generated for {kib}, which is valid for 30 minutes.
  15. The password for the `elastic` user and the enrollment token for {kib} are
  16. output to your terminal. For example:
  17. :slash: \
  18. include::auto-config-output.asciidoc[]
  19. If you have password-protected the {es} keystore, you will be prompted to
  20. enter the keystore's password. See <<secure-settings>> for more details.
  21. By default {es} prints its logs to the console (`STDOUT`) and to the `<cluster
  22. name>.log` file within the <<path-settings,logs directory>>. {es} logs some
  23. information while it is starting, but after it has finished initializing it
  24. will continue to run in the foreground and won't log anything further until
  25. something happens that is worth recording. While {es} is running you can
  26. interact with it through its HTTP interface which is on port `9200` by default.
  27. To stop {es}, press `Ctrl-C`.
  28. [discrete]
  29. ==== Enroll nodes in an existing cluster
  30. To enroll new nodes in your cluster, create an enrollment token with the
  31. `elasticsearch-create-enrollment-token` tool on any existing node in your
  32. cluster. You can then start a new node with the `--enrollment-token` parameter
  33. so that it joins an existing cluster.
  34. // The following include pulls in steps for enrolling nodes in a cluster from
  35. // a security page in the x-pack folder
  36. :slash: \
  37. include::../../../../x-pack/docs/en/security/enroll-nodes.asciidoc[]