ES 6.2.2 Installation

Source: Internet
Author: User

First, download ES

I'm using the 6.2.2 version here. The download address is as follows:

Https://www.elastic.co/products/elasticsearch

Second, decompression:

Tar zxvf elasticsearch-6.2.2.tar.gz

Get elasticsearch-6.2.2 folder after successful decompression

Third, create ES users

The default ES 6.x.x does not allow the root user to run, otherwise ES will error when running, so we need to create a new user

[Root@elk2 es]# groupadd es [root@elk2 es]# useradd es-g es [root@elk2 es]# passwd es change user es password. New Password: Re-enter the new password: passwd: All authentication tokens have been successfully updated.

Iv. Modify the ES directory permissions

Modify the permissions of the ES root directory

Chown-r Es:es elasticsearch-6.2.2

Five, run ES

Switch the current user to Es, go to the ES directory, use the command

/bin/elasticsearch will be able to run ES.

command example:

[Root@elk2 es]# su es [es@elk2 es]$ cd elasticsearch-6.2.2 [Es@elk2 elasticsearch-6.2.2]$./bin/elasticsearch

After normal startup, we can see the following information:


You can verify that the service is working

Input:

Curl-i "http://localhost:9200"

If you can see the following information stating that startup is normal:

http/1.1 200 ok   content-type: application/json; charset=utf-8   content-length: 436      {      "name"  :  "Linux-2",       "cluster_name"  :  "li-application",      "Cluster_uuid"  :   "Legl4apctds-nj76inkzag",      "version"  : {         "number"  :  "6.2.2",        "Build_hash"  :  "10b1edd",         "Build_date"  :  "2018-02-16t19:01:30.685723z",         "Build_snapshot"  : false,        "Lucene_version"  :  "7.2.1",        "minimum_wire_compatibility_version"  :  " 5.6.0 ",       " minimum_index_compatibility_version " : " 5.0.0 "      },&NBsp;     "tagline"  :  "You know, for search"   } 

Vi. Configure ES to enable external network access:

Modifying a configuration file elasticsearch.yml

Remove the following comments and modify the following configuration (remember the configuration item name there is a space after the colon, if there is no space will be an error

cluster.name:my_es# Cluster Name, you can modify it yourself
Node.name:lnoide-1 #节点名称, modify it Yourself
Network.host:172.16.111.111 #主机地址, here's a machine IP
http.port:9200 #端口

After the modification, start es again, you may report the error:

Error:bootstrap checks failed

System call filters failed to install; Check the logs and fix your configuration or disable system call filters at your own risk

Cause of the problem: because CENTOS6 does not support Seccomp, and ES5.2.1 default bootstrap.system_call_filter is true for detection, it causes the detection to fail, which directly causes ES to fail to start. See: https://github.com/elastic/elasticsearch/issues/22899


Workaround: Configure Bootstrap.system_call_filter to False in Elasticsearch.yml, and note the following in memory:
Bootstrap.memory_lock:false

Bootstrap.system_call_filter:false



Start again after modification


Access via browser:

Page if the following information appears to indicate that the installation was successful. Other errors may be reported at startup, which can be handled according to the specific error message.

Http://192.168.111.111:9200/





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.