Docker部署Elasticsearch

#Elasticsearch安装

安装Elasticsearch唯一的要求是安装官方新版的Java,地址:www.java.com

Install Elasticsearch

1 Docker部署

Install Elasticsearch with Docker

docker pull docker.elastic.co/elasticsearch/elasticsearch:6.4.3

docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.4.3

2 Download and install the .tar.gz package

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.3.tar.gz
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.3.tar.gz.sha512
shasum -a 512 -c elasticsearch-6.4.3.tar.gz.sha512 
tar -xzf elasticsearch-6.4.3.tar.gz
cd elasticsearch-6.4.3/ 
./bin/elasticsearch

异常

[root@JD elasticsearch]# shasum -a 512 -c elasticsearch-6.4.3.tar.gz.sha512 
-bash: shasum: command not found

centos解决:yum install perl-Digest-SHA

异常

[root@JD elasticsearch-6.4.3]# ./bin/elasticsearch
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000ca660000, 899284992, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 899284992 bytes for committing reserved memory.
# An error report file with more information is saved as:
# logs/hs_err_pid16061.log

你可能感兴趣的:(Elasticsearch)