|
@@ -27,11 +27,22 @@ filesystem, or configure {es} to use a different location for its temporary
|
|
|
directory by setting the <<es-tmpdir,`$ES_TMPDIR`>> environment variable. For
|
|
|
instance:
|
|
|
|
|
|
+* If you are running {es} directly from a shell, set `$ES_TMPDIR` as follows:
|
|
|
++
|
|
|
["source","sh",subs="attributes"]
|
|
|
--------------------------------------------
|
|
|
export ES_TMPDIR=/usr/share/elasticsearch/tmp
|
|
|
--------------------------------------------
|
|
|
|
|
|
+* If you are using `systemd` to run {es} as a service, using the `systemctl`
|
|
|
+command, add the following line to the `[Service]` section of your
|
|
|
+`elasticsearch.service` unit file:
|
|
|
++
|
|
|
+[source,text]
|
|
|
+--------------------------------------------
|
|
|
+Environment=ES_TMPDIR=/usr/share/elasticsearch/tmp
|
|
|
+--------------------------------------------
|
|
|
+
|
|
|
If you need finer control over the location of these temporary files, you can
|
|
|
also configure the path that JNA uses with the <<set-jvm-options,JVM flag>>
|
|
|
`-Djna.tmpdir=<path>` and you can configure the path that `libffi` uses for its
|