Mongodb

een veel betere gids  :   \
 https://scotch.io/\@micwanyoike/getting-started-with-mongodb-in-linux\


https://tecadmin.net/install-mongodb-on-ubuntu/

This tutorial will help you to install MongoDB 3.6 community release on Ubuntu 16.04 LTS (Xenial) and 14.04 LTS (trusty).

Step 1 – Setup Apt Repository
First of all, import GPK key for the MongoDB apt repository on your system using the following command.
This is required to test packages before installation

[sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv
2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5]

add MongoDB APT repository url in /etc/apt/sources.list.d/mongodb.list.

For Ubuntu 16.04:
`[echo \"deb \[ arch=amd64,arm64 \] http://repo.mongodb.org/apt/ubuntu \"\$(lsb_release -sc)\"/mongodb-org/3.6 multiverse\"  \|  sudo tee  /etc/apt/sources.list.d/mongodb.list]

http://repo.mongodb.org/apt/ubuntu

manueel nachecken :
http://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.6/

  • ]

\
Step 2 – Install MongoDB Server\
After adding required APT repositories, use following commands to
install MongoDB on your systems. It will also install all dependent
packages required for MongoDB.\
[sudo apt-get update\
][...\
E: Failed to fetch
http://repo.mongodb.org/apt/ubuntu/dists/sylvia/mongodb-org/3.6/multiverse/binary-amd64/Packages
 404  Not Found\
] [...][\
][sudo apt-get install
mongodb-org]

  • Reading package lists... Done
  • Building dependency tree      
  • Reading state information... Done
  • [E: Unable to locate package
    mongodb-org] []

If you want to install any specific version of MongoDB, define the version number as below\
[sudo apt-get install mongodb-org=3.6.3 mongodb-org-server=3.6.3
mongodb-org-shell=3.6.3 mongodb-org-mongos=3.6.3
mongodb-org-tools=3.6.3\

Err:28 http://repo.mongodb.org/apt/ubuntusylvia/mongodb-org/3.6/multiverse amd64 Packages\  404  Not Found
]
sudo systemctl enable mongod\
sudo systemctl start mongod\
sudo systemctl stop mongod\
sudo systemctl restart mongod\
\
OPLOSSING\
[in file  /etc/apt/sources.list.d/mongodb.list\
]de ggenereerde lijn deb [ arch=amd64,arm64 ]
http://repo.mongodb.org/apt/ubuntu
[sylvia]/mongodb-org/3.6 multiverse\
vervangen door deb [ arch=amd64,arm64 ]
http://repo.mongodb.org/apt/ubuntu
[xenial]/mongodb-org/3.6 multiverse\
daarna opnieuw [sudo apt-get update] + [sudo
apt-get install mongodb-org]

https://docs.mongodb.com/v3.2/tutorial/install-mongodb-on-ubuntu/\

Import the public key used by the package management system.
The Ubuntu package management tools (i.e. dpkg and apt) ensure package consistency and authenticity by requiring that distributors sign
packages with GPG keys. Issue the following command to import the MongoDB public GPG Key:

  • sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv
    EA312927

\
Create a list file for MongoDB\
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2
multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list\
\