centos7 es Elasticsearch mounted at docker

First install docker I will not say more if not by their own Baidu, many here have a step by step to the official website of the transfer

I installed the 6.8.1

  

1.

 

docker pull elasticsearch:6.8.1

 

2.

 

docker images

 

 

 

 3.

 

docker run --name elasticsearch -d -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -p 9200:9200 -p 9300:9300 elasticsearch:6.8.1

 

 

Haha of course, this time you will want to know if there was a successful start of the answer is certainly not to see the log when you start being given

 

 

 

 

Do not worry about a mistake to find out a lot on the Baidu also has a solution 

 

My solution is

 

I look a bit of value to see max_map_count

 

cat /proc/sys/vm/max_map_count

 

 

Here a look at the original value of the small 

 

 

sysctl -w vm.max_map_count=262144

 

 

After you restart the decisive no problem

 

 

 

docker  logs xxx

 

 

 

Guess you like

Origin www.cnblogs.com/pqy521/p/11272784.html