安装和配置

Install

yum install epel-release -y
yum install java-1.8.0-openjdk -y
wget -O elasticsearch-6.2.4.tar.gz  https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.4.tar.gz
tar -xvf elasticsearch-6.2.4.tar.gz

System Config

ulimit -n 65536
ulimit -u 4092
sysctl -w vm.max_map_count=262144

vim /etc/security/limits.conf

* -  nofile  65536
* -  nproc 4092

vim /etc/sysctl.conf

vm.max_map_count = 262144

start service

cd elasticsearch-6.2.4
bin/elasticsearch

你可能感兴趣的:(安装和配置)