targz-start.asciidoc 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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
  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. [source,sh]
  18. ----
  19. The generated password for the elastic built-in superuser is:
  20. H16Wd=K4dcmgZVA-GE2I
  21. The enrollment token for Kibana instances, valid for the next 30 minutes:
  22. eyJ2ZXIiOiI4LjAuMCIsImFkciI6WyIxOTIuMTY4Ljg2LjEyMjo5MjAwIl0sImZnciI6ImU5MmVhYWM0ZWMzMGExY2EzMDA0MzM4NDgyM2I3Y2YwNTFkMWQ3OTdkNGJlNTQxYzE3ZWY4NGFiMzBjMjlmNGUiLCJrZXkiOiJFM05YNFh3QkVYOVV2SUs0QlU2YTphVEhESktYRVFEbTctUjlFYlBneGlnIn0=
  23. The hex-encoded SHA-256 fingerprint of the generated HTTPS CA DER-encoded certificate:
  24. e92eaac4ec30a1ca30043384823b7cf051d1d797d4be541c17ef84ab30c29f4e
  25. You can complete the following actions at any time:
  26. Reset the password of the elastic built-in superuser with
  27. 'bin/elasticsearch-reset-password -u elastic'.
  28. Generate an enrollment token for Kibana instances with
  29. 'bin/elasticsearch-create-enrollment-token -s kibana'.
  30. Generate an enrollment token for Elasticsearch nodes with
  31. 'bin/elasticsearch-create-enrollment-token -s node'.
  32. ----
  33. If you have password-protected the {es} keystore, you will be prompted
  34. to enter the keystore's password. See <<secure-settings>> for more
  35. details.
  36. By default {es} prints its logs to the console (`stdout`) and to the `<cluster
  37. name>.log` file within the <<path-settings,logs directory>>. {es} logs some
  38. information while it is starting, but after it has finished initializing it
  39. will continue to run in the foreground and won't log anything further until
  40. something happens that is worth recording. While {es} is running you can
  41. interact with it through its HTTP interface which is on port `9200` by default.
  42. To stop {es}, press `Ctrl-C`.
  43. NOTE: All scripts packaged with {es} require a version of Bash
  44. that supports arrays and assume that Bash is available at `/bin/bash`.
  45. As such, Bash should be available at this path either directly or via a
  46. symbolic link.
  47. To enroll additional nodes in your cluster, create an enrollment token with the
  48. `elasticsearch-create-enrollment-token` tool. You can then start a node with the `--enrollment-token` parameter so that it
  49. {ref}/configuring-stack-security.html#stack-enroll-nodes[joins an existing cluster].