Elasticsearch 依赖于java环境,首先安装一个jdk,可参考地址https://blog.csdn.net/liqi_q/article/details/72963947
下载Elasticsearch源码包
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.14.tar.gz
解压压缩包
tar -xvf elasticsearch-5.6.14.tar.gz
进入elasticsearch目录
cd elasticsearch-5.6.14/bin
启动elasticsearch
./elasticsearch
启动elasticsearch会报错,用非root用户才可以
useradd esuser用户
切换普通用户su esuser
安装curl服务测试服务是否正常