美文网首页
elasticsearch安装

elasticsearch安装

作者: zzz_0427 | 来源:发表于2020-05-19 16:18 被阅读0次

    docker  pull elasticsearch:7.4.2

    docker pull kibana:7.4.2

    mkdir -p /mydata/elasticsearch/config

    mkdir -p /mydata/elasticsearch/data

    echo http.host: 0.0.0.0 >> /mydata/elasticsearch/config/elasticsearch.yml    --冒号后面要有一个空格,否则报json格式不正常错误

    chmod -R 777 /mydata/elasticsearch/

    docker run -p 9200:9200 -p 9300:9300 --name elasticsearch \

    -e "discovery.type=single-node" \

    -e ES_JAVA_OPTS="-Xms64m -Xmx128m" \

    -e "cluster.name=elasticsearch" \

    -v /mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml \

    -v /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins \

    -v /mydata/elasticsearch/data:/usr/share/elasticsearch/data \

    -d elasticsearch:7.4.2

    docker run --name kibana -e ELASTICSEARCH_HOSTS=http://192.168.92.100:9200 -p 5601:5601 -d kibana:7.4.2

    相关文章

      网友评论

          本文标题:elasticsearch安装

          本文链接:https://www.haomeiwen.com/subject/wtapohtx.html