为了在Linux shell上链接远程的mongodb,不得不在我的开发机上重新yum下载了100多M的mongodb。这里边其实包含了mongodb的server端,感觉多余呀。有没有只下载安装一个client就可以在shell上链接远端机器上的mongodb?
小伙看你根骨奇佳,潜力无限,来学PHP伐。
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.
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.
server
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
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.
You should not install it
server
, just install the components you need.