You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: deploy-manage/deploy/self-managed.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,4 +5,14 @@ mapped_pages:
5
5
6
6
# Self-managed cluster [dependencies-versions]
7
7
8
-
See [Elastic Stack Third-party Dependencices](https://artifacts.elastic.co/reports/dependencies/dependencies-current.md) for the complete list of dependencies for {{es}}.
8
+
See [Elastic Stack Third-party Dependencices](https://artifacts.elastic.co/reports/dependencies/dependencies-current.md) for the complete list of dependencies for {{es}}.
9
+
10
+
11
+
```sh
12
+
{{stack-version}}
13
+
```
14
+
15
+
{{stack-version}}
16
+
17
+
1. Compares the SHA of the downloaded `.tar.gz` archive and the published checksum, which should output `elasticsearch-<version>-linux-x86_64.tar.gz: OK`.
When you start {{es}} for the first time, the following security configuration occurs automatically:
2
+
3
+
*[Certificates and keys](../../../deploy-manage/security/security-certificates-keys.md#stack-security-certificates) for TLS are generated for the transport and HTTP layers.
4
+
* The TLS configuration settings are written to `elasticsearch.yml`.
5
+
* A password is generated for the `elastic` user.
6
+
* An enrollment token is generated for {{kib}}, which is valid for 30 minutes.
7
+
8
+
You can then start {{kib}} and enter the enrollment token. This token automatically applies the security settings from your {{es}} cluster, authenticates to {{es}} with the built-in `kibana` service account, and writes the security configuration to `kibana.yml`.
9
+
10
+
::::{note}
11
+
There are [some cases](../../../deploy-manage/security/security-certificates-keys.md#stack-skip-auto-configuration) where security can’t be configured automatically because the node startup process detects that the node is already part of a cluster, or that security is already configured or explicitly disabled.
The password for the `elastic` user and the enrollment token for {{kib}} are output to your terminal.
2
+
3
+
We recommend storing the `elastic` password as an environment variable in your shell. For example:
4
+
5
+
```sh
6
+
{{export}}ELASTIC_PASSWORD="your_password"
7
+
```
8
+
9
+
If you have password-protected the {{es}} keystore, you will be prompted to enter the keystore’s password. See [Secure settings](../../security/secure-settings.md) for more details.
10
+
11
+
To learn how to reset this password, refer to [](/deploy-manage/users-roles/cluster-or-deployment-auth/built-in-sm.md).
Check `man journalctl` or [https://www.freedesktop.org/software/systemd/man/journalctl.html](https://www.freedesktop.org/software/systemd/man/journalctl.md) for more command line options.
49
49
50
-
::::{admonition} Startup timeouts with older `systemd` versions
50
+
::::{admonition} Startup timeouts with older systemd versions
51
51
:class: tip
52
52
53
53
By default {{es}} sets the `TimeoutStartSec` parameter to `systemd` to `900s`. If you are running at least version 238 of `systemd` then {{es}} can automatically extend the startup timeout, and will do so repeatedly until startup is complete even if it takes longer than 900s.
Copy file name to clipboardExpand all lines: deploy-manage/deploy/self-managed/_snippets/targz-start.md
+1-18Lines changed: 1 addition & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,24 +3,7 @@ Run the following command to start {{es}} from the command line:
3
3
```sh
4
4
./bin/elasticsearch
5
5
```
6
-
7
-
When starting {{es}} for the first time, security features are enabled and configured by default. The following security configuration occurs automatically:
8
-
9
-
* Authentication and authorization are enabled, and a password is generated for the `elastic` built-in superuser.
10
-
* Certificates and keys for TLS are generated for the transport and HTTP layer, and TLS is enabled and configured with these keys and certificates.
11
-
* An enrollment token is generated for {{kib}}, which is valid for 30 minutes.
12
-
13
-
The password for the `elastic` user and the enrollment token for {{kib}} are output to your terminal.
14
-
15
-
We recommend storing the `elastic` password as an environment variable in your shell. Example:
16
-
17
-
```sh
18
-
export ELASTIC_PASSWORD="your_password"
19
-
```
20
-
21
-
If you have password-protected the {{es}} keystore, you will be prompted to enter the keystore’s password. See [Secure settings](../../security/secure-settings.md) for more details.
22
-
23
-
By default {{es}} prints its logs to the console (`stdout`) and to the `<cluster name>.log` file within the [logs directory](important-settings-configuration.md#path-settings). {{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.
6
+
By default, {{es}} prints its logs to the console (`stdout`) and to the `<cluster name>.log` file within the [logs directory](important-settings-configuration.md#path-settings). {{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.
Copy file name to clipboardExpand all lines: deploy-manage/deploy/self-managed/_snippets/zip-windows-start.md
-16Lines changed: 0 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,6 @@ Run the following command to start {{es}} from the command line:
4
4
.\bin\elasticsearch.bat
5
5
```
6
6
7
-
When starting {{es}} for the first time, security features are enabled and configured by default. The following security configuration occurs automatically:
8
-
9
-
* Authentication and authorization are enabled, and a password is generated for the `elastic` built-in superuser.
10
-
* Certificates and keys for TLS are generated for the transport and HTTP layer, and TLS is enabled and configured with these keys and certificates.
11
-
* An enrollment token is generated for {{kib}}, which is valid for 30 minutes.
12
-
13
-
The password for the `elastic` user and the enrollment token for {{kib}} are output to your terminal.
14
-
15
-
We recommend storing the `elastic` password as an environment variable in your shell. Example:
16
-
17
-
```sh
18
-
$ELASTIC_PASSWORD = "your_password"
19
-
```
20
-
21
-
If you have password-protected the {{es}} keystore, you will be prompted to enter the keystore’s password. See [Secure settings](../../security/secure-settings.md) for more details.
22
-
23
7
By default {{es}} prints its logs to the console (`STDOUT`) and to the `<cluster name>.log` file within the [logs directory](important-settings-configuration.md#path-settings). {{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.
Copy file name to clipboardExpand all lines: deploy-manage/deploy/self-managed/install-elasticsearch-from-archive-on-linux-macos.md
+43-23Lines changed: 43 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@ mapped_pages:
4
4
sub:
5
5
es-conf: "$ES_HOME/config"
6
6
slash: "/"
7
+
export: "export"
8
+
escape: "\\"
7
9
navigation_title: "Linux or MacOS"
8
10
---
9
11
@@ -14,15 +16,19 @@ navigation_title: "Linux or MacOS"
14
16
:::{include} _snippets/trial.md
15
17
:::
16
18
17
-
:::{include} _snippets/other-versions.md
19
+
:::{include} _snippets/es-releases.md
18
20
:::
19
21
20
22
::::{note}
21
23
{{es}} includes a bundled version of [OpenJDK](https://openjdk.java.net) from the JDK maintainers (GPLv2+CE). To use your own version of Java, see the [JVM version requirements](installing-elasticsearch.md#jvm-version)
22
24
::::
23
25
24
26
25
-
## Download and install archive for Linux [install-linux]
27
+
## Step 1: Download and install the archive
28
+
29
+
Download and install the archive for Linux or MacOS.
30
+
31
+
### Linux [install-linux]
26
32
27
33
The Linux archive for {{es}} {{stack-version}} can be downloaded and installed as follows:
28
34
@@ -34,12 +40,24 @@ tar -xzf elasticsearch-{{stack-version}}-linux-x86_64.tar.gz
34
40
cd elasticsearch-{{stack-version}}/ <2>
35
41
```
36
42
37
-
1. Compares the SHA of the downloaded `.tar.gz` archive and the published checksum, which should output `elasticsearch-{{stack-version}}-linux-x86_64.tar.gz: OK`.
43
+
1. Compares the SHA of the downloaded `.tar.gz` archive and the published checksum, which should output `elasticsearch-<version>-linux-x86_64.tar.gz: OK`.
38
44
2. This directory is known as `$ES_HOME`.
39
45
40
46
41
47
42
-
## Download and install archive for MacOS [install-macos]
48
+
### MacOS [install-macos]
49
+
50
+
The MacOS archive for {{es}} {{stack-version}} can be downloaded and installed as follows:
curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-{{stack-version}}-darwin-x86_64.tar.gz.sha512 | shasum -a 512 -c - <1>
55
+
tar -xzf elasticsearch-{{stack-version}}-darwin-x86_64.tar.gz
56
+
cd elasticsearch-{{stack-version}}/ <2>
57
+
```
58
+
59
+
1. Compares the SHA of the downloaded `.tar.gz` archive and the published checksum, which should output `elasticsearch-<version>-darwin-x86_64.tar.gz: OK`.
Alternatively, you can add a security override by following the instructions in the *If you want to open an app that hasn’t been notarized or is from an unidentified developer* section of [Safely open apps on your Mac](https://support.apple.com/en-us/HT202491).
56
-
57
74
::::
58
75
76
+
## Step 2: Enable automatic creation of system indices [targz-enable-indices]
59
77
60
-
The MacOS archive for {{es}} {{stack-version}} can be downloaded and installed as follows:
curl https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-{{stack-version}}-darwin-x86_64.tar.gz.sha512 | shasum -a 512 -c - <1>
65
-
tar -xzf elasticsearch-{{stack-version}}-darwin-x86_64.tar.gz
66
-
cd elasticsearch-{{stack-version}}/ <2>
67
-
```
81
+
## Step 3: Start {{es}} [targz-running]
68
82
69
-
1. Compares the SHA of the downloaded `.tar.gz` archive and the published checksum, which should output `elasticsearch-{{version}}-darwin-x86_64.tar.gz: OK`.
70
-
2. This directory is known as `$ES_HOME`.
83
+
You have several options for starting {{es}}
71
84
72
-
## Enable automatic creation of system indices [targz-enable-indices]
85
+
*[Run from the command line](#command-line)
86
+
*[Run the node to be enrolled in an existing cluster](#existing-cluster)
87
+
*[Run as a daemon](#setup-installation-daemon)
73
88
74
-
:::{include} _snippets/enable-auto-indices.md
89
+
### Run {{es}} from the command line [command-line]
90
+
91
+
:::{include} _snippets/targz-start.md
75
92
:::
76
93
77
-
##Run {{es}} from the command line [targz-running]
94
+
#### Security at startup [security-at-startup]
78
95
79
-
:::{include} _snippets/targz-start.md
96
+
:::{include} _snippets/auto-security-config.md
97
+
:::
98
+
99
+
:::{include} _snippets/pw-env-var.md
80
100
:::
81
101
82
-
### Enroll nodes in an existing cluster [_enroll_nodes_in_an_existing_cluster_2]
102
+
### Enroll the node in an existing cluster [existing-cluster]
83
103
84
104
:::{include} _snippets/enroll-nodes.md
85
105
:::
86
106
87
-
##Check that {{es}} is running [_check_that_elasticsearch_is_running]
107
+
### Run as a daemon [setup-installation-daemon]
88
108
89
-
:::{include} _snippets/check-es-running.md
109
+
:::{include} _snippets/targz-daemon.md
90
110
:::
91
111
92
-
## Run as a daemon [setup-installation-daemon]
112
+
## Step 4: Check that {{es}} is running [_check_that_elasticsearch_is_running]
93
113
94
-
:::{include} _snippets/targz-daemon.md
114
+
:::{include} _snippets/check-es-running.md
95
115
:::
96
116
97
117
## Configure {{es}} on the command line [targz-configuring]
0 commit comments