2016-04-03 22:09:24 +08:00
[[install-elasticsearch]]
== Installing Elasticsearch
2020-07-23 23:48:22 +08:00
[discrete]
2022-06-23 08:15:27 +08:00
[[hosted-elasticsearch-service]]
=== Hosted Elasticsearch Service
2018-07-17 03:47:57 +08:00
2022-06-23 08:15:27 +08:00
{ecloud} offers all of the features of {es}, {kib}, and Elastic’ s {observability}, {ents}, and {elastic-sec} solutions as a hosted service
available on AWS, GCP, and Azure.
To set up Elasticsearch in {ecloud}, sign up for a {ess-trial}[free {ecloud} trial].
[discrete]
[[elasticsearch-deployment-options]]
=== Self-managed {es} options
If you want to install and manage {es} yourself, you can:
2024-02-05 23:06:41 +08:00
* Run {es} using a <<elasticsearch-install-packages,Linux, MacOS, or Windows install package>>.
* Run {es} in a <<elasticsearch-docker-images,Docker container>>.
2022-06-23 08:15:27 +08:00
* Set up and manage {es}, {kib}, {agent}, and the rest of the Elastic Stack on Kubernetes with {eck-ref}[{eck}].
2018-07-12 02:17:05 +08:00
2024-05-08 00:10:48 +08:00
TIP: To try out Elasticsearch on your own machine, we recommend using Docker and running both Elasticsearch and Kibana. For more information, see <<run-elasticsearch-locally,Run Elasticsearch locally>>. Please note that this setup is *not suitable for production use*.
2022-09-02 07:49:05 +08:00
2020-07-23 23:48:22 +08:00
[discrete]
2022-06-23 08:15:27 +08:00
[[elasticsearch-install-packages]]
=== Elasticsearch install packages
2018-07-13 21:40:38 +08:00
2016-04-03 22:09:24 +08:00
Elasticsearch is provided in the following package formats:
[horizontal]
2019-03-29 21:04:46 +08:00
Linux and MacOS `tar.gz` archives::
2016-04-03 22:09:24 +08:00
2019-03-29 21:04:46 +08:00
The `tar.gz` archives are available for installation on any Linux distribution and MacOS.
2016-04-03 22:09:24 +08:00
+
2019-03-29 21:04:46 +08:00
<<targz>>
Windows `.zip` archive::
The `zip` archive is suitable for installation on Windows.
+
<<zip-windows>>
2016-04-03 22:09:24 +08:00
`deb`::
The `deb` package is suitable for Debian, Ubuntu, and other Debian-based
2021-03-31 21:57:47 +08:00
systems. Debian packages may be downloaded from the Elasticsearch website or
2016-04-03 22:09:24 +08:00
from our Debian repository.
+
<<deb>>
`rpm`::
The `rpm` package is suitable for installation on Red Hat, Centos, SLES,
2021-03-31 21:57:47 +08:00
OpenSuSE and other RPM-based systems. RPMs may be downloaded from the
2016-04-03 22:09:24 +08:00
Elasticsearch website or from our RPM repository.
+
<<rpm>>
2024-02-05 23:06:41 +08:00
TIP: For a step-by-step example of setting up the {stack} on your own premises, try out our tutorial: {stack-ref}/installing-stack-demo-self.html[Installing a self-managed Elastic Stack].
[discrete]
[[elasticsearch-docker-images]]
=== Elasticsearch container images
You can also run {es} inside a container image.
[horizontal]
2016-11-17 21:06:32 +08:00
`docker`::
2024-02-05 23:06:41 +08:00
Docker container images may be downloaded from the Elastic Docker Registry.
2016-11-17 21:06:32 +08:00
+
2017-11-11 04:08:16 +08:00
{ref}/docker.html[Install {es} with Docker]
2016-11-17 21:06:32 +08:00
2023-06-01 15:39:00 +08:00
[discrete]
[[jvm-version]]
=== Java (JVM) Version
{es} is built using Java, and includes a bundled version of
https://openjdk.java.net[OpenJDK] from the JDK maintainers (GPLv2+CE) within
each distribution. The bundled JVM is the recommended JVM.
To use your own version of Java, set the `ES_JAVA_HOME` environment variable.
If you must use a version of Java that is different from the bundled JVM, it is
best to use the latest release of a link:/support/matrix[supported]
https://www.oracle.com/technetwork/java/eol-135779.html[LTS version of Java].
{es} is closely coupled to certain OpenJDK-specific features, so it may not
work correctly with other JVMs. {es} will refuse to start if a known-bad
version of Java is used.
If you use a JVM other than the bundled one, you are responsible for reacting
to announcements related to its security issues and bug fixes, and must
yourself determine whether each update is necessary or not. In contrast, the
bundled JVM is treated as an integral part of {es}, which means that Elastic
takes responsibility for keeping it up to date. Security issues and bugs within
the bundled JVM are treated as if they were within {es} itself.
The bundled JVM is located within the `jdk` subdirectory of the {es} home
directory. You may remove this directory if using your own JVM.
2023-09-22 11:49:04 +08:00
[discrete]
[[jvm-agents]]
=== JVM and Java agents
Don't use third-party Java agents that attach to the JVM. These agents
can reduce {es} performance, including freezing or crashing nodes.
2019-03-29 21:04:46 +08:00
include::install/targz.asciidoc[]
2016-04-03 22:09:24 +08:00
2017-06-19 12:52:47 +08:00
include::install/zip-windows.asciidoc[]
2016-04-03 22:09:24 +08:00
include::install/deb.asciidoc[]
include::install/rpm.asciidoc[]
2018-06-07 05:46:20 +08:00
include::install/docker.asciidoc[]