Installing Elasticsearch on Linux

Source: Internet
Author: User

Build Environment Centos7 and

First upload the tar package to/usr/local/mypackage/elasticsearch via the tool

Unzip the TAR package

After decompression, go to config directory, edit configuration file

VI elasticsearch.yml

Locate the following code snippet and uncomment the Network.host and Http.port lines, and modify the IP and port

Enter Bin/elasticsearch file to start Elasticsearch

Data found Elasticsearch can only be started with non-root

This is a condition set for system security considerations. Because Elasticsearch can receive user input scripts and execute, for system security considerations,
It is recommended to create a separate user to run the Elasticsearch

Create Elsearch user groups and Elsearch users

Groupadd Elsearch

Useradd Elsearch- G elsearch- p elasticsearch

Change the user and group of Elasticsearch folder and internal file to Elsearch:elsearch

Chown- R elsearch: Elsearch elasticsearch

Chown-r Elsearch:elsearch elasticsearch-6.0.0

Switch to Elsearch user and restart

Above error resolution Reference blog

Https://www.cnblogs.com/xxoome/p/6663993.html

http://blog.csdn.net/gebitan505/article/details/54709515

Open firewall port

Installing Elasticsearch on Linux

Related Article

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.