1.下载Elasticsearch
地址:https://www.elastic.co/cn/downloads/elasticsearch
2.版本选择
Java19+es8.5.3(根据需要自己上网查很重要,试了一下es8.7不支持)
3.修改配置
/config/jvm.options
## directory containing these lines: (默认4g)
-Xms1g
-Xmx1g
/config/Elasticsearch.yml
# Set a specific HTTP port here:
http.port: 9200
# Enable security features (访问认证false:关闭,true:开启)
xpack.security.enabled: false
4.cmd启动
es启动包的bin目录下:elasticsearch.bat