本文共 914 字,大约阅读时间需要 3 分钟。
安装依赖 openjdk
# yum install java-1.8.0-openjdk
下载
# wget -P /usr/local/src https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/rpm/elasticsearch/2.4.1/elasticsearch-2.4.1.rpm
开启、开机启动、查看状态
# systemctl start elasticsearch# systemctl status elasticsearch# systemctl daemon-reload# curl localhost:9200 或者 curl 127.0.0.0:9200
配置es 外网可以查看9200
# vim /etc/elasticsearch/elasticsearch.yml 设置 network.host: 0.0.0.0
重启es、查看es状态
# systemctl restart elasticsearch# systemctl status elasticsearch
打开es外网ip:9200
{ "name" : "node-1", "cluster_name" : "my-application", "cluster_uuid" : "xxxx_xxx", "version" : { "number" : "2.4.1", "build_hash" : " 8d6fe1e952c4cbcbe79d16", "build_timestamp" : "2016-09-27T18:57:55Z", "build_snapshot" : false, "lucene_version" : "5.5.2" }, "tagline" : "You Know, for Search"}
转载地址:http://xmvpa.baihongyu.com/