docker elasticsearch cluster startup command
docker run -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -d -p 9200:9200 -p 9300:9300 -p 5601:5601 -v /usr/local/es/config/es1.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /usr/local/es/plugins1:/usr/share/elasticsearch/plugins -v /usr/local/es/data1:/usr/share/elasticsearch/data --name ES01 1ac676545731 docker run -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -d -p 9201:9201 -p 9301:9301 -v /usr/local/es/config/es2.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /usr/local/es/plugins2:/usr/share/elasticsearch/plugins -v /usr/local/es/data2:/usr/share/elasticsearch/data --name ES02 1ac676545731
http: // ip: port / _cat / nodes pretty cluster test results? http: // ip:? Port / _cat / indices v View elaticsearch indexing status http: // ip: port / _cluster / health pretty # view health information? http: // ip: port / _cat / health v # View cluster status?
analysis-pinyin plug-Download
https://github.com/medcl/elasticsearch-analysis-pinyin/releases
Use document
https://github.com/medcl/elasticsearch-analysis-pinyin/
docker -p command
Do not write the local port, docker automatically assigned to help you: docker run -d -p: 80 -p : 443 nginx: latest add on to tie local ip specified ip: docker run -d -p 127.0.0.1:8088:80 -p: 443 nginx: latest not randomly assigned to write the local port: docker run -d -p 127.0.0.1::80 -p: 443 nginx: latest