elasticsearch- 7.9.2 单机安装

    科技2022-07-10  188

     

    1.安装&启动

    下载安装包 elasticsearch-7.9.2-linux-x86_64.tar.gz 下载地址https://www.elastic.co/cn/downloads/elasticsearch 解压 到/data/ 下 [root@node1 tmp]# tar -zxvf elasticsearch-7.9.2-linux-x86_64.tar.gz -C /data/ 解压成功后 /data/ 目录下生成 elasticsearch-7.9.2/ [root@node1 elasticsearch-7.9.2]# ll 总用量 572 drwxr-xr-x. 2 root root 4096 9月 23 2020 bin drwxr-xr-x. 3 root root 4096 6月 9 02:59 config drwxr-xr-x. 9 root root 99 9月 23 2020 jdk drwxr-xr-x. 3 root root 4096 9月 23 2020 lib -rw-r--r--. 1 root root 13675 9月 23 2020 LICENSE.txt drwxr-xr-x. 2 root root 6 9月 23 2020 logs drwxr-xr-x. 51 root root 4096 9月 23 2020 modules -rw-r--r--. 1 root root 544318 9月 23 2020 NOTICE.txt drwxr-xr-x. 2 root root 6 9月 23 2020 plugins -rw-r--r--. 1 root root 7007 9月 23 2020 README.asciidoc 启动es ./bin/elasticsearch

    2.启动报错

    启动报错原因 elasticsearch 不允许root 用户启动 添加一个es 用户 [root@node1 elasticsearch-7.9.2]# add
    Processed: 0.011, SQL: 8