search

Home  >  Q&A  >  body text

Linux shell上链接远程的mongodb

为了在Linux shell上链接远程的mongodb,不得不在我的开发机上重新yum下载了100多M的mongodb。这里边其实包含了mongodb的server端,感觉多余呀。
有没有只下载安装一个client就可以在shell上链接远端机器上的mongodb?

伊谢尔伦伊谢尔伦2815 days ago527

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-28 09:07:13

    First of all, it’s not that big. I just installed the latest version 3.2.6 on the server today. The download is only about 50M, and the largest one is mongodb-org-tools-3.2.6.

    After configuring the yum source.

    [mongodb-org-3.2]
    name=MongoDB Repository
    baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/
    gpgcheck=1
    enabled=1
    gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc

    You should not install itserver, just install the components you need.

    sudo yum install -y mongodb-org-3.2.6 mongodb-org-shell-3.2.6 mongodb-org-mongos-3.2.6 mongodb-org-tools-3.2.6

    reply
    0
  • Cancelreply