版本信息:
elasticsearch:6.8.5
java:1.8
##下载地址
##解压缩
unzip elasticsearch-oss-6.8.5.zip
######配置######
#远程访问
vi config/elasticsearch.yml
network.host: 0.0.0.0
http.port: 9200
#虚拟机内存限制
vi /etc/sysctl.conf
vm.max_map_count=655360
sysctl -p
#进程、文件限制
vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 131072
* soft nproc 4096
* hard nproc 4096
#后台启动
./bin/elasticsearch -d -p pid
#停止
pkill -F pid