Official MongoDB 3.4 on ODROID-C2 under Ubuntu
I’m a big fan of MongoDB but contrary to its “humongous” orientation, I like to think small as in ARM-based SBCs like the Raspberry Pi or ODROID-C2 and DBs under a terabyte :wink: You can get a lot of power out of tiny inexpensive computers and USB disk drives! You can find my blog entries, below, for getting 32-bit MongoDB 3.0 working on R-Pi and 64-bit, MongoDB3.2 working under Archlinux ARM on ODROID-C2.
I had seen MongoDB community requests for a 64-bit ARM version and even a mention that there was “official experimental” development going on including the efficient WiredTiger storage engine. I recently perused the MongoDB Community Edition documentation for version 3.4 and saw a download option for “Ubuntu 16.04 Linux 64-bit ARM 64” on the MongoDB Download Center . Ubuntu 16.04 is the default Linux supplied with the ODROID-C2 You can purchase a bare ODROID-C2 for US$40 at Hardkernel .Micro SD card or EMMC module with preinstalled Ubuntu Linux is extra.
Clickmore for installation instructions.
Installing version 3.4 on the ODROID-C2 under Ubuntu is way easy! You can find instructions in the MongoDB 3.4 installation guide .
Get to a command prompt with a “sudo” user. Get the GPG key, add the MongoDB repository, and install the package:sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \
echo "deb [ arch=amd64,arm64,ppc64el,s390x ] \
http://repo.mongodb.com/apt/ubuntu xenial/mongodb-enterprise/3.4 multiverse" \
| sudo tee /etc/apt/sources.list.d/mongodb-enterprise.list
sudo apt-get update
sudo apt-get install -y mongodb-enterprise
You can check out the version installed:mongod --version
db version v3.4.1
git version: 5e103c4f5583e2566a45d740225dc250baacfbd7
OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
Check out my cluster of ODROID-C2s running MongoDB inthis blog post.
本文系统（linux）相关术语:linux系统 鸟哥的linux私房菜 linux命令大全 linux操作系统