So verwenden Sie MongoDB im Ubuntu -Terminal
mongod --dbpath ~/db/data
Relieved Ray
mongod --dbpath ~/db/data
sudo apt-get install gnupg
> echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -