docker run --detach --name elasticsearch --publish 9200:9200 --publish 9300:9300 --volume ${PWD}//esdata:/usr/share/elasticsearch/data elasticsearch
curl -X GET http://192.168.99.100:9200
{
"name" : "NuFj7uw",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "vvooB9u_Qs-nf4zYe_g_tg",
"version" : {
"number" : "5.5.0",
"build_hash" : "260387d",
"build_date" : "2017-06-30T23:16:05.735Z",
"build_snapshot" : false,
"lucene_version" : "6.6.0"
},
"tagline" : "You Know, for Search"
}
docker run --name kibana --link elasticsearch:elasticsearch -p 5601:5601 -d kibana
curl -XPOST "http://192.168.99.100:9200/index_1/table_1/1" -d "{ \"test\" : \"aaa\"}"
curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"user" : "ercanc",
"post_date" : "2017-07-23T12:30:00",
"message" : "test message 1"
}' "http://192.168.99.100:9200/sampleindex/sampleType/"
curl -X GET http://192.168.99.100:9200
{
"name" : "NuFj7uw",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "vvooB9u_Qs-nf4zYe_g_tg",
"version" : {
"number" : "5.5.0",
"build_hash" : "260387d",
"build_date" : "2017-06-30T23:16:05.735Z",
"build_snapshot" : false,
"lucene_version" : "6.6.0"
},
"tagline" : "You Know, for Search"
}
docker run --name kibana --link elasticsearch:elasticsearch -p 5601:5601 -d kibana
curl -XPOST "http://192.168.99.100:9200/index_1/table_1/1" -d "{ \"test\" : \"aaa\"}"
curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"user" : "ercanc",
"post_date" : "2017-07-23T12:30:00",
"message" : "test message 1"
}' "http://192.168.99.100:9200/sampleindex/sampleType/"
Comments
Post a Comment