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"
本文提供了一套完整的Elasticsearch部署流程,包括下载Elasticsearch、安装并配置JDK环境变量、调整Elasticsearch的JVM内存参数、通过命令行启动服务及验证服务是否正常运行。同时针对Linux环境下启动失败的问题提供了具体的解决步骤。
761

被折叠的 条评论
为什么被折叠?



