How to install mongodb on the server?

How to install mongodb on the server?

Installed the ubuntu 16.04 server. Next, I try to install mongodb 4.2 according to the instructions from the official site.

After entering the command (step 2)

echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list

I get this error

在此处输入图片描述

sudo: unable to resolve host sarnormail-vps-10

deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse

Help me figure out what it means?

sudo: unable to resolve host sarnormail-vps-10

相关内容