Elasticsearch Third article (Installation article) _elasticsearch

Source: Internet
Author: User
Install under *nux

Under *nux, ES officially has provided the compiled Deb and RPM packages, but you need to make sure that the installed Java Virtual Environment (currently es1.6 and version 1.7 can choose version 1.8 Java), the installation steps are as follows:
1. Download es deb/rpm Package and execute an order
Deb Package Installation: Dpkg-i Elasticsearch-1.6.0.deb
RPM Package Installation: Rpm-i elasticsearch-1.6.0.rpm

2. After installation, the ES service update needs to be started with the system

For Debian/ubuntu Systems
Executive: UPDATE-RC.D elasticsearch defaults
System Service Control:/etc/init.d/elasticsearch Start/stop/restart

For Redhat/centos Systems
Executive: Chkconfig-add Elasticsearch
System Services Control: Service Elasticsearch Start/stop/restart

3. If you need to modify the es boot parameter, you can modify it directly in the/etc/init.d/elasticsearch script and then install it from its server windows

ES installation in Windows is simpler, of course, you need to install the Java Virtual Environment in advance, the following is the ES installation steps:
1. Download Zip package and extract to installation directory
2. Register ES with Es_home/bin/service.bat through the Windows service (note that you need to run with Administrator privileges), Service.bat command format: Service.bat install|remove|start| Stop|manager [server_name] parameter description Install install ES to the Windows service remove the ES from Windows service start stop Service Stop manager admin GUI

If server_name is not set when the installation service is not set, the command uses the default name and does not need to specify the server_name parameter when executing the Service.bat script, otherwise you will need to manually specify server_name to perform

3. If you need to modify the ES boot parameters, you can use Service.bat Manager [server_name] to open the GUI window, set the startup parameters in the Java tab and restart the Service ES directory explanation

1
2
3
4 5 6 7 8
9
ten
-one 12
Elasticsearch--                     path.home, ES installation directory
├─bin-                             -${path.home}/bin, startup script Way directory
├─config-                          -${ Path.home}/config, config file directory
├─data-                            -${path.home}/data, data storage directory
│  └─elasticsearch                --${ Path.home}/data/${cluster.name}
├─lib-                             -${path.home}/lib, running program directory
├─logs                            --${path.home}/logs , log directory 
└─plugins                         -${path.home}/plugins, plugin directory
    ├─head
    │  └─ ...
    └─marvel
        └─ ...

ES supports configuring the data directory to multiple, by setting the directory to be selected when the-des.index.store.distributor is stored by using the process at startup: Parameter value description least_used default value, select the directory that has the largest remaining storage space random Random selection, the probability of selection and the size of the remaining storage space of the directory

The scheme provides a way to RAID0 (spread continuous data to different disk storage) and is simpler to configure:

1
Path.data:/path/to/data1,/path/to/data2

Installation of the DEB/RPM installation package under *nix usually modifies the installation path for each folder, and the default installation path is as follows:

Type Debian/ubuntu Redhat/centos home/usr/share/elasticsearch/usr/share/elasticsearch bin/usr/share/elasticsearch/ Bin/usr/share/elasticsearch/bin Config (file)/etc/elasticsearch/etc/elasticsearch Config (env)/etc/default/ Elasticseach/etc/sysconfig/elasticseach Data/var/lib/elasticsearch/data/var/lib/elasticsearch logs/var/log/ Elasticsearch/var/log/elasticsearch Plugins/usr/share/elasticsearch/plugins/usr/share/elasticsearch/plugins from : http://imsilence.github.io/2015/09/15/elasticsearch/elasticsearch_03/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.