log in as root: sudo su
if you don't have MongoDB already installed:
sudo apt-get install mongodb mongodb-server openjdk-8-jre-headless=8u162-b12-1 jsvc
Open terminal (go to your apps and type in terminal, or push the windows key and type in terminal) Type the following commands:
sudo mv /usr/bin/mongod /usr/bin/mongod.bin