MongoDB官方文档中没有,但是实际上是可行的,需要如下步骤
1.安装key
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
2.添加源
echo "deb http://repo.mongodb.org/apt/debian wheezy/mongodb-org/3.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
3.更新源
apt-get update
4.安装mongodb
apt-get install mongodb-org
5.检查状态
# systemctl status mongod
mongod.service - LSB: An object/document-oriented database
Loaded: loaded (/etc/init.d/mongod)
Active: active (running) since 六 2015-10-03 11:35:34 CST; 2min 8s ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/mongod.service
└─3365 /usr/bin/mongod --config /etc/mongod.conf
10月 03 11:35:33 dean-Aspire-S3-391 systemd[1]: Starting LSB: An object/document-oriented database...
10月 03 11:35:33 dean-Aspire-S3-391 mongod[3358]: * Starting database mongod
10月 03 11:35:34 dean-Aspire-S3-391 mongod[3358]: ...done.
10月 03 11:35:34 dean-Aspire-S3-391 systemd[1]: Started LSB: An object/document-oriented database.
安装成功。
在Ubuntu 14.04 64bit上安装python mongoDB模块:http://www.linuxdiyf.com/linux/13978.html
Ubuntu14.04 LTS下安装mongodb:http://www.linuxdiyf.com/linux/13829.html
MongoDB的基本操作:http://www.linuxdiyf.com/linux/13326.html
Ubuntu安装MongoDB:http://www.linuxdiyf.com/linux/1977.html
MongoDB在Linux下常用优化设置:http://www.linuxdiyf.com/linux/12952.html