Docker安装ElasticSearch 7

配置参数:

sysctl -w vm.max_map_count=262144 &&
grep vm.max_map_count /etc/sysctl.conf

下载镜像:

docker pull elasticsearch:7.0.0

启动容器:

docker run --name elasticsearch -d \
-v /home/elk/elasticsearch/data:/usr/share/elasticsearch/data \
-p 9200:9200 \
-p 9300:9300 \
-e "discovery.type=single-node" \
elasticsearch:7.0.0

开启防火墙端口:

firewall-cmd --permanent --add-port=9200/tcp && \
firewall-cmd --permanent --add-port=9300/tcp && \
firewall-cmd --reload

以http访问宿主机9200端口,得到下面输出,则启动成功:

{

    "name": "0a50cb561c04",
    "cluster_name": "docker-cluster",
    "cluster_uuid": "DFu_C31fQwqhzLyTko6wGg",
    "version": {
        "number": "7.0.0",
        "build_flavor": "default",
        "build_type": "docker",
        "build_hash": "b7e28a7",
        "build_date": "2019-04-05T22:55:32.697037Z",
        "build_snapshot": false,
        "lucene_version": "8.0.0",
        "minimum_wire_compatibility_version": "6.7.0",
        "minimum_index_compatibility_version": "6.0.0-beta1"
    },
    "tagline": "You Know, for Search"

}

 

相关推荐
<div style="color:#444444;"> <strong>适用人群</strong> <p style="color:#666666;"> 开发从业人员,大数据从业人员,运维从业人员,IT相关从业人员,想快速掌握技能的一切人员 </p> </div> <p> <br /> </p> <strong>课程概述</strong> <p style="color:#666666;"> ElasticSearch7.x集群?Elasticsearch-head7.x官网都没有的插件整合?cerebro插件酷炫暗黑插件神器?一次搞定 </p> <p style="color:#666666;"> <br /> </p> <p style="color:#666666;"> <span style="font-size:18px;"><strong>官网版本</strong></span> </p> <p style="color:#666666;"> <img src="https://img-bss.csdn.net/201909191559264287.png" alt="" /> </p> <p style="color:#666666;"> <br /> </p> <p style="color:#666666;"> <span style="font-size:18px;">主从读写</span> </p> <p style="color:#666666;"> <span style="font-size:18px;"><img src="https://img-bss.csdn.net/201909191600534277.png" alt="" /><br /> </span> </p> <p style="color:#666666;"> <span style="font-size:18px;"><strong>中文分词</strong></span> </p> <p style="color:#666666;"> <img src="https://img-bss.csdn.net/201909191558496304.png" alt="" /> </p> <p style="color:#666666;"> <br /> </p> <p style="color:#666666;"> <br /> </p> <p style="color:#666666;"> Head插件 </p> <p style="color:#666666;"> <br /> </p> <p style="color:#666666;"> <img src="https://img-bss.csdn.net/201909191601265587.png" alt="" /> </p> <p style="color:#666666;"> <br /> </p> <p style="color:#666666;"> <span> </span> </p> <div style="font-size:14pt;"> <span style="font-size:18px;">cerebro插件</span> </div> <img src="https://img-bss.csdn.net/201909191601542208.png" alt="" />
©️2020 CSDN 皮肤主题: 程序猿惹谁了 设计师:白松林 返回首页