采用了Docker部署,Docker只有elasticsearch 5
docker run -d --name elastic -e transport.host=0.0.0.0 -p 9200:9200 -p 9300:9300 elasticsearch:5.6.10
docker cp elastic:/usr/share/elasticsearch/config ./
docker rm -f elastic
docker run -d --name elastic -e transport.host=0.0.0.0\
-v /mnt/docker_container/elasticsearch/config:/usr/share/elasticsearch/config\
-v /mnt/docker_container/elasticsearch/esdata:/usr/share/elasticsearch/data\
elasticsearch:5.6.10
修改config.yml
中的信息
elastic:
enable: true
server_address:
- http://127.0.0.1:9200
sniffer_enabled: false
auth: false
auth_username:
auth_password: