我已阅读有关安装旧版本的说明,但似乎 2.4 在 repos 中不再可用?
aptitude -y install mongodb-org-server=2.4
Unable to find a version "2.4" for the package "mongodb-org-server"
Unable to find a version "2.4" for the package "mongodb-org-server"
The following NEW packages will be installed:
mongodb-org-server
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/9,416 kB of archives. After unpacking 23.7 MB will be used.
Selecting previously unselected package mongodb-org-server.
(Reading database ... 33931 files and directories currently installed.)
Preparing to unpack .../mongodb-org-server_2.6.3_amd64.deb ...
Unpacking mongodb-org-server (2.6.3) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mongodb-org-server (2.6.3) ...
mongod start/running, process 30690
更新:我还向Mongo 的 JIRA 提交了一张票,该票已收到回复。
似乎从 v2.6 开始,Mongo 正在发布与 Ubuntu 匹配的软件包:
但是直到 v2.4,Mongo 发布了一个mongodb-10gen 包,这显然是你需要安装的:
这可能已经解决了,但是文档显示了如何安装 mongoDB 2.4:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list sudo apt-get update sudo apt-get install mongodb-10gen=2.4.14
@SSH 这个 Mongodb 2.4.13 已经过时了,你能安装它的唯一方法是下载 rpms
并安装它们。这适用于 redhat/fedora/centos 等。对于 ubuntu,您将需要 ubuntu 软件包。