安装测试全部采用docker方式
es安装
第一步获取es镜像
docker pull docker.elastic.co/elasticsearch/elasticsearch:7.6.2
配置config文件
http.host: 0.0.0.0
# Uncomment the following lines for a production cluster deployment
#transport.host: 0.0.0.0
#discovery.zen.minimum_master_nodes: 1
#Password config
xpack.security.enabled: true #这一步是开启x-pack插件
命令需要自己修改数据卷的位置,比如我的文件是在/data/es/elasticsearch.yml
docker run -d -it --restart=always --privileged=true --name=es7 -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -v /data/es/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -e ES_JAVA_OPTS="-Xms256m -Xmx256m" f29a1ee41030
进入容器
docker exec -it es7 /bin/bash # 进入容器
# cd bin
# ls
elasticsearch elasticsearch-croneval elasticsearch-migrate elasticsearch-setup-passwords elasticsearch-syskeygen x-pack-watcher-env
elasticsearch-certgen elasticsearch-env elasticsearch-node elasticsearch-shard elasticsearch-users
elasticsearch-certutil elasticsearch-env-from-file elasticsearch-plugin elasticse