Skip to content

Instantly share code, notes, and snippets.

@hitesh83
Created August 1, 2017 10:41
Show Gist options
  • Save hitesh83/12ed2996464b2db42d96b1160b6efa98 to your computer and use it in GitHub Desktop.
Save hitesh83/12ed2996464b2db42d96b1160b6efa98 to your computer and use it in GitHub Desktop.
MongoDB 3.4 on Odroid C2 (ARM64)
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
@hitesh83
Copy link
Author

The instructions/packages on the MongoDB site are currently available for LTS Ubuntu 12.04 and 14.04 only. The packages are set up to use upstart instead of systemd. You need to create a systemctl file to be ready for systemd. Create it by

sudo nano /etc/systemd/system/mongodb.service
It will look like

[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target

[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf

[Install]
WantedBy=multi-user.target

Now you can start the service and check its state by

sudo systemctl start mongodb
sudo systemctl status mongodb

and finally enable it permanently by

sudo systemctl enable mongodb (Source: How to Install MongoDB on Ubuntu 16.04)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment