WARNING: Version 0.90 of Elasticsearch has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Linux
editLinux
editCurrently our build automatically creates a debian package and an RPM package, which is available on the download page. The package itself does not have any dependencies, but you have to make sure that you installed a JDK.
Each package features a configuration file, which allows you to set the following parameters
|
The user to run as, defaults to |
|
The group to run as, defaults to |
|
The heap size to start with |
|
The size of the new generation heap |
|
The maximum size of the direct memory |
|
Maximum number of open files, defaults to |
|
Maximum locked memory size. Set to "unlimited" if you use the bootstrap.mlockall option in elasticsearch.yml. You must also set ES_HEAP_SIZE. |
|
Maximum number of memory map areas a process may have. If you use |
|
Log directory, defaults to |
|
Data directory, defaults to |
|
Work directory, defaults to |
|
Configuration file directory (which needs to include |
|
Path to configuration file, defaults to |
|
Any additional java options you may want to apply. This may be useful, if you need to set the |
|
Configure restart on package upgrade, defaults to |
Debian/Ubuntu
editThe debian package ships with everything you need as it uses standard debian tools like update update-rc.d
to define the runlevels it runs on. The init script is placed at /etc/init.d/elasticsearch
is you would expect it. The configuration file is placed at /etc/default/elasticsearch
.
Installing the oracle JDK
editThe usual recommendation is to run the Oracle JDK with elasticsearch. However Ubuntu and Debian only ship the OpenJDK due to license issues. You can easily install the oracle installer package though. In case you are missing the add-apt-repository
command under Debian GNU/Linux, make sure have at least Debian Wheezy and the package python-software-properties
installed
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer java -version
The last command should verify a successful installation of the Oracle JDK.
RedHat/Centos/Fedora
editRedHat based distributions are using chkconfig
to enable and disable services. The init script is at /etc/init.d/elasticsearch
, where as the configuration file is placed at /etc/sysconfig/elasticsearch
.
SuSe
editSuSe does not use the chkconfig
tool to register services, but rather systemd
and its command /bin/systemctl
to start and stop services. The configuration file is also placed at /etc/sysconfig/elasticsearch
.
Also note that changing the MAX_MAP_COUNT
setting in /etc/sysconfig/elasticsearch
does not have any effect, you will have to change it in /usr/lib/sysctl.d/elasticsearch.conf
in order to have it applied at startup.