标签:its docke emctl app slider 自启 local arch system
# 使用yum安装docker yum -y install docker # 启动 systemctl start docker.service # 设置为开机自启动 systemctl enable docker.service # 下载docker-compose sudo curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose # 添加可执行权限(这里不懂可以看一下菜鸟教程-linux教程-文件权限) sudo chmod +x /usr/local/bin/docker-compose # 查看docker-compose版本 docker-compose --version
version: ‘3.4‘ services: elasticsearch: image: slideroom/elasticsearch:98 environment: bootstrap.memory_lock: ‘true‘ discovery.type: single-node ES_JAVA_OPTS: ‘-Xms512m -Xmx512m‘ xpack.security.enabled: ‘false‘ ports: - 9200:9200 - 9300:9300 ulimits: memlock: soft: -1 hard: -1 volumes: - esdata:/usr/share/elasticsearch/data kibana: depends_on: - elasticsearch image: slideroom/kibana:116 ports: - 5601:5601 volumes: esdata: driver: local appdata: driver: local
注意:复制粘贴记得检查
通过一句简单的命令:docker-compose up -d 即可快速启动ElasticSearch和Kibana
标签:its docke emctl app slider 自启 local arch system
原文地址:https://www.cnblogs.com/fger/p/13226028.html