[root@linuxidc elasticsearch]# curl -X GET :9200
{
"name" : "Captain Savage",
"cluster_name" : "elasticsearch",
"version" : {
"number" : "2.1.1",
"build_hash" : "40e2c53a6b6c2972b3d13846e450e66f4375bd71",
"build_timestamp" : "2015-12-15T13:05:55Z",
"build_snapshot" : false,
"lucene_version" : "5.3.1"
},
"tagline" : "You Know, for Search"
}
[root@linuxidc elasticsearch]#
ES 已经安装成功。
但此时的 ES 不能通过IP访问,所以,你要修改 config/elasticsearch.yml。找到“network.host”行,那个示例,添加一行:
network.host: your id address
就能通过IP,或浏览器访问。