帮酷LOGO
  • 显示原文与译文双语对照的内容
文章标签:Mongodb  Elasticsearch  setup  SET  mongod  DOC  Docker  DOCK  
Docker setup to get Elasticsearch and MongoDB up and running

  • 源代码名称:elastic-mongo
  • 源代码网址:http://www.github.com/soldotno/elastic-mongo
  • elastic-mongo源代码文档
  • elastic-mongo源代码下载
  • Git URL:
    git://www.github.com/soldotno/elastic-mongo.git
  • Git Clone代码到本地:
    git clone http://www.github.com/soldotno/elastic-mongo
  • Subversion代码到本地:
    $ svn co --depth empty http://www.github.com/soldotno/elastic-mongo
    Checked out revision 1.
    $ cd repo
    $ svn up trunk
  • 弹性 Mongo

    为获取Elasticsearch和 MongoDB,并运行提供了的Docker 设置

    安装 Docker 和docker组成

    git clone https://github.com/soldotno/elastic-mongo.gitcd elastic-mongo
    docker-compose up -d # If you skip -d, then the entire clusted will go down when# mongosetup and elasticsearch-river-setup are done.

    现在你已经使用MongoDB配置了Elasticsearch和 MongoDB 。

    $ docker ps # =>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
    39ed9e7c6f33 elasticsearch:1.6 "/docker-entrypoint. 1 seconds ago Up Less than a second 0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp elasticmongo_elasticsearch_148f2b777abdf mongo:3.1.5 "/usr/bin/mongod --r 2 seconds ago Up 1 seconds 0.0.0.0:27017->27017/tcp, 0.0.0.0:28017->28017/tcp elasticmongo_mongo1_1
    7e6dd54b85e5 mongo:3.1.5 "/usr/bin/mongod --r 2 seconds ago Up 1 seconds 0.0.0.0:27018->27017/tcp, 0.0.0.0:28018->28017/tcp elasticmongo_mongo3_124e147982c2d mongo:3.1.5 "/usr/bin/mongod --r 3 seconds ago Up 2 seconds 0.0.0.0:27019->27017/tcp, 0.0.0.0:28019->28017/tcp elasticmongo_mongo2_1

    登录到容器

    docker exec -i -t elasticmongo_mongo3_1 bash


    文章标签:DOC  SET  Docker  DOCK  mongo  Mongodb  mongod  Elastic  

    Copyright © 2011 HelpLib All rights reserved.    知识分享协议 京ICP备05059198号-3  |  如果智培  |  酷兔英语