elasticsearch- 7.9.2 单机安装

 

1.安装&启动node

下载安装包 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.启动报错linux

启动报错缘由 elasticsearch 不容许root 用户启动
添加一个es 用户
[root@node1 elasticsearch-7.9.2]# add