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