1.安装JDK8
2.解压elasticsearch-6.6.0.tar.gz
在/opt/application中创建一个elasticsearch文件夹,解压到此目录中
> tar -zxvf elasticsearch-6.6.0.tar.gz -C /opt/application/elasticsearch
3.在elasticsearch中创建data以及logs目录
> elasticsearch# ls
drwxr-xr-x. 3 root root 18 2月 15 10:58 data
drwxr-xr-x. 8 root root 4096 2月 15 10:47 elasticsearch-6.6.0
drwxr-xr-x. 2 root root 4096 2月 15 10:58 logs
4.修改配置
vi elasticsearch-6.6.0/conf/elasticsearch.yml
cluster.name: my-application
node.name: node113
path.data: /opt/application/elasticsearch/data
path.log