https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.2.0.zip
unzip elasticsearch-5.2.0.zipchown -R es.es elasticsearch-5.2.0
es启动需要在非root下,新建账号和创建数据目录
useradd es
mkdir /export/es52/
修改配置文件
cat elasticsearch.yml
path.data: /export/es52/data
path.logs: /export/es52/logs
network.host: 192.168.80.11
启动
./bin/elasticsearch -d
jps 验证
curl http://192.168.80.11:9200/
{
"name" : "g-H2EPn",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "UbMTV1G5QtGyBjCRZ9XJSw",
"version" : {
"number" : "5.2.0",
"build_hash" : "24e05b9",
"build_date" : "2017-01-24T19:52:35.800Z",
"build_snapshot" : false,
"lucene_version"