Work and Technology‎ > ‎Hardware‎ > ‎Networking‎ > ‎Unifi‎ > ‎Deployment‎ > ‎

mongodb

You may be asked to deploy a specific version of mongodb for unifi. Here's how to deploy version 3.2

(backup unifi)
sudo ls -lt
sudo scp  /var/lib/unifi/backup/autobackup/autobackup_5.9.29_20181218_0500_1545109200026.unf allen@server.gattis.org:

# Verify what you have installed and delete it and it's data
apt list --installed
sudo apt remove --purge mongodb*
sudo rm /etc/apt/sources.list.d/mongodb*.list

# Install the key and repo for the version in question
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
sudo bash -c 'echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list'

sudo apt-get update 

sudo apt-get install \
mongodb-org=3.2.21 \
mongodb-org-server=3.2.21 \
mongodb-org-shell=3.2.21 \
mongodb-org-mongos=3.2.21 \
mongodb-org-tools=3.2.21 

# pin the version in place so it doesn't upgrade automatically
echo "mongodb-org hold" | sudo dpkg --set-selections
echo "mongodb-org-server hold" | sudo dpkg --set-selections
echo "mongodb-org-shell hold" | sudo dpkg --set-selections
echo "mongodb-org-mongos hold" | sudo dpkg --set-selections
echo "mongodb-org-tools hold" | sudo dpkg --set-selections











https://stackoverflow.com/questions/39823676/how-to-install-a-specific-version-of-mongodb
https://docs.mongodb.com/manual/release-notes/3.2-changelog/
https://askubuntu.com/questions/842592/apt-get-fails-on-16-04-or-18-04-installing-mongodb
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
Comments