1.下载https://www.elastic.co/guide/en/elasticsearch/reference tar.gz包
2.tar zxvf elasticsearch.tar.gz
3. 运行./bin/elasticsearch -d。按守护进程启动
4.curl -XGET ‘localhost:9200/?pretty‘ 查看是否启动服务。
5.日志文件默认在工作目录的log文件夹下。
6.配置文件在工作目录的config文件夹下的elasticsearch.yml中。
时间: 2024-12-13 23:18:46