|
@@ -172,8 +172,21 @@ environment variable, or the `-Des.config`, `-Des.default.config`, or
|
|
|
`-Delasticsearch.config` parameters.
|
|
|
|
|
|
Instead, the config file must be named `elasticsearch.yml` and must be located
|
|
|
-in the default `config/` directory, or in the directory specified in the
|
|
|
-`CONF_DIR` environment variable.
|
|
|
+in the default `config/` directory, unless a custom config directory is specified.
|
|
|
+
|
|
|
+The location of a custom config directory may be specified as follows:
|
|
|
+
|
|
|
+[source,sh]
|
|
|
+--------------
|
|
|
+./bin/elasticsearch --path.conf=/path/to/conf/dir
|
|
|
+./bin/plugin -Des.path.conf=/path/to/conf/dir install analysis-icu
|
|
|
+--------------
|
|
|
+
|
|
|
+When using the RPM or debian packages, the plugin script and the
|
|
|
+init/service scripts will consult the `CONF_DIR` environment variable
|
|
|
+to check for a custom config location. The value of the `CONF_DIR`
|
|
|
+variable can be set in the environment config file which is located either in
|
|
|
+`/etc/default/elasticsearch` or `/etc/sysconfig/elasticsearch`.
|
|
|
|
|
|
==== `ES_CLASSPATH removed`
|
|
|
|