docker pull docker.elastic.co/elasticsearch/elasticsearch:7.7.0docker run --name=elastic770 -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -v /var/docker/elastic/data:/data docker.elastic.co/elasticsearch/elasticsearch:7.7.0
测试环境加上-e "discovery.type=single-node" 3、安装ik分词插件 4、其他配置 创建 elasticsearch.yml cluster.name: "elasticsearch7.7.0"network.host: 0.0.0.0node.name: node0http.host: 0.0.0.0http.cors.enabled: truehttp.cors.allow-origin: "*"拷贝到docker容器中,覆盖原有配置文件 docker cp elasticsearch.yml elastic770:/usr/share/elasticsearch/config5、安装可视化管理工具 docker run -p 9800:9800 -d --link elastic770:hd containerize/elastichd
|