<pre>
ubuntu@puli-mongomon:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.2 LTS (Focal Fossa)"
:
ubuntu@puli-mongomon:~$ wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
OK
ubuntu@puli-mongomon:~$ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.listubuntu@puli-mongomon:~$ sudo apt-get updateubuntu@puli-mongomon:~$ sudo apt-get install -y mongodb-org
</pre>
=====ディレクトリ=====
----
<pre>
ubuntu@puli-mongomon:/etc$ sudo systemctl start mongod
</pre>
*失敗する場合
----
<pre>
ubuntu@puli-mongomon:/etc$ mongo
MongoDB shell version v4.4.6
connecting to: mongodb://127.0.0.1:27017/?