1. 下载安装包

    image.png
    创建elsearch用户。 由于es不建议使用root用户安装部署,所以需要专门为es集群设置一个用户
    groupadd elsearch && useradd elsearch -g elsearch -p elasticsearch
    image.png

    1. 上传服务器

    image.png

    1. 解压

      [root@192 SoftWare]# tar -zxvf elasticsearch-7.5.1-linux-x86_64.tar.gz

    image.png
    目录移动
    image.png

    1. 启动

    cd /usr/local/elasticsearch
    执行:

    [root@192 bin]# ./elasticsearch

    这个时候可能会报错,报错信息如下
    image.png

    1. 授权

    [root@192 bin]# chown -R elsearch:elsearch /usr/local/elasticsearch/
    image.png

    1. 启动

    image.png
    解决方案:https://blog.csdn.net/liuhePPPP/article/details/106985861