安装java
es需要java环境,ubuntu系统安装java jdk参考ubuntu安装openjdk8
下载es
目前es版本为: 6.1.1
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.1.1.deb
安装
sudo dpkg -i elasticsearch-6.1.1.deb
启动
sudo systemctl enable elasticsearch.service
测试
➜ ~ curl http://localhost:9200/
{
"name" : "HfgBlNO",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "SVd8wvzNTkq0OPlgTbAP4A",
"version" : {
"number" : "6.1.1",
"build_hash" : "bd92e7f",
"build_date" : "2017-12-17T20:23:25.338Z",
"build_snapshot" : false,
"lucene_version" : "7.1.0",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
网友评论