成长,总在点滴之间

docker 部署ElasticSearch

一行命令:

docker run -d -p 9200:9200 -p 9300:9300 -e "ES_JAVA_OPTS=-Xms512m -Xmx512m" --name=MyElasticSearch elasticsearch:5.6.13

访问:http:127.0.0.1:9200

{
    "name": "UoauNF0",
    "cluster_name": "elasticsearch",
    "cluster_uuid": "YZwCKIGVRumwkEitofu_9Q",
    "version": {
        "number": "5.6.13",
        "build_hash": "4d5320b",
        "build_date": "2018-10-30T19:05:08.237Z",
        "build_snapshot": false,
        "lucene_version": "6.6.1"
    },
    "tagline": "You Know, for Search"
}