Docker环境下的其他安装

Elasticsearch

cat /proc/sys/vm/max_map_count

sysctl -w vm.max_map_count=262144

docker pull elasticsearch:7.6.2

docker run --name my-elasticsearch -d -e ES_JAVA_OPTS="-Xms512m -Xmx512m" -e "discovery.type=single-node" -p 9200:9200 -p 9300:9300 elasticsearch:7.6.2

浏览器访问:http://[宿主机IP]:9200


RabbitMQ

docker pull rabbitmq:management

docker run -d --name my-rabbitmq -e RABBITMQ_DEFAULT_USER=guest -e RABBITMQ_DEFAULT_PASS=guest -p 15672:15672 -p 5672:5672 rabbitmq:management

浏览器访问:http://[宿主机IP]:15672

上一篇:golang下新版grpc和pb的编译


下一篇:elasticsearch重启后,unassigned索引重新分片失败YELLO、RED恢复处理