Clarify how `-Djava.security.policy=someURL` must be passed

Closes #17160
This commit is contained in:
Clinton Gormley 2016-03-17 14:13:19 +01:00
parent d17fd335e4
commit bd059b8cc3
1 changed files with 7 additions and 1 deletions

View File

@ -100,7 +100,13 @@ Security Policy either:
* system wide: `$JAVA_HOME/lib/security/java.policy`,
* for just the `elasticsearch` user: `/home/elasticsearch/.java.policy`, or
* from a file specified on the command line: `-Djava.security.policy=someURL`
* from a file specified in the `JAVA_OPTS` environment variable with `-Djava.security.policy=someURL`:
+
[source,js]
---------------------------------
export JAVA_OPTS="${JAVA_OPTS} -Djava.security.policy=file:///path/to/my.policy`
./bin/elasticsearch
---------------------------------
Permissions may be granted at the class, package, or global level. For instance: