1,下载 elasticsearch
https://www.elastic.co/downloads/elasticsearch
2,安装jdk 配置 java_home 环境变量
3,在 elasticsearch 目录下 config 调试 jvm.options 的 运行内存
如:
# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space
-Xmx1g
-Xmx1g
4,cmd 运行 ,bin/elasticsearch.bat
5,浏览器 输入 http://localhost:9200/?pretty
linux 下启动失败
1,将此文件夹设置最高权限
2,
修改bin目录elasticsearch.in.sh文件中追加(不过不建议):
JAVA_OPTS="$JAVA_OPTS -Des.insecure.allow.root=true"