elasticsearch/docs/reference/setup/install/targz-start.asciidoc
Liam Thompson 33a71e3289
[DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413)
* Remove `es-test-dir` book-scoped variable

* Remove `plugins-examples-dir` book-scoped variable

* Remove `:dependencies-dir:` and `:xes-repo-dir:` book-scoped variables

- In `index.asciidoc`, two variables (`:dependencies-dir:` and `:xes-repo-dir:`) were removed.
- In `sql/index.asciidoc`, the `:sql-tests:` path was updated to fuller path
- In `esql/index.asciidoc`, the `:esql-tests:` path was updated idem

* Replace `es-repo-dir` with `es-ref-dir`

* Move `:include-xpack: true` to few files that use it, remove from index.asciidoc
2024-04-17 14:37:07 +02:00

56 lines
No EOL
2 KiB
Text

==== Run {es} from the command line
Run the following command to start {es} from the command line:
[source,sh]
----
./bin/elasticsearch
----
When starting {es} for the first time, security features are enabled and
configured by default. The following security configuration occurs
automatically:
* Authentication and authorization are enabled, and a password is generated for
the `elastic` built-in superuser.
* Certificates and keys for TLS are generated for the transport and HTTP layer,
and TLS is enabled and configured with these keys and certificates.
* An enrollment token is generated for {kib}, which is valid for 30 minutes.
The password for the `elastic` user and the enrollment token for {kib} are
output to your terminal.
We recommend storing the `elastic` password as an environment variable in your shell. Example:
[source,sh]
----
export ELASTIC_PASSWORD="your_password"
----
If you have password-protected the {es} keystore, you will be prompted
to enter the keystore's password. See <<secure-settings>> for more
details.
By default {es} prints its logs to the console (`stdout`) and to the `<cluster
name>.log` file within the <<path-settings,logs directory>>. {es} logs some
information while it is starting, but after it has finished initializing it
will continue to run in the foreground and won't log anything further until
something happens that is worth recording. While {es} is running you can
interact with it through its HTTP interface which is on port `9200` by default.
To stop {es}, press `Ctrl-C`.
NOTE: All scripts packaged with {es} require a version of Bash
that supports arrays and assume that Bash is available at `/bin/bash`.
As such, Bash should be available at this path either directly or via a
symbolic link.
[discrete]
==== Enroll nodes in an existing cluster
// The following include pulls in steps for enrolling nodes in a cluster from
// a security page in the x-pack folder
:slash: /
include::{es-ref-dir}/security/enroll-nodes.asciidoc[]