天天看点

ELK-Elasticsearch7.10安装

文章目录

    • 下载es的包
    • 解压es包
    • 配置文件修改
    • 启动es
    • 验证
    • 关闭es

下载es的包

官网地址:https://www.elastic.co/cn/downloads/elasticsearch

解压es包

tar -zxvf elasticsearch-7.10.0-linux-x86_64.tar.gz
           

配置文件修改

进入解压完毕后的包,查看目录,进入到config目录下,修改

elasticsearch.yml

文件

ELK-Elasticsearch7.10安装
ELK-Elasticsearch7.10安装

启动es

按照上图修改完毕后,切换到非root用户,然后启动es

bin/elasticsearch
命令行启动

bin/elasticsearch -d
后台启动
           

验证

可以访问ip:9200

查看返回值,返回下方返回值就正确

{
    "name": "node-1",
    "cluster_name": "my-application",
    "cluster_uuid": "9R_huW9yRcmGpH-fIcioAQ",
    "version": {
        "number": "7.10.0",
        "build_flavor": "default",
        "build_type": "tar",
        "build_hash": "51e9d6f22758d0374a0f3f5c6e8f3a7997850f96",
        "build_date": "2020-11-09T21:30:33.964949Z",
        "build_snapshot": false,
        "lucene_version": "8.7.0",
        "minimum_wire_compatibility_version": "6.8.0",
        "minimum_index_compatibility_version": "6.0.0-beta1"
    },
    "tagline": "You Know, for Search"
}
           

关闭es

命令行启动的  退出时就关闭了

后台启动的可以查询进程  来关闭进程
ps -ef | grep elasticsearch
kill -9 
           

继续阅读