MongoDB is a free and open-source NoSQL Database used commonly in today’s web applications.
MongoDB是一个免费的开源NoSQL数据库,在当今的Web应用程序中普遍使用。
In this tutorial, we will show you how to install and setup MongoDB on your Ubuntu 18.04 machine in a few simple steps!
在本教程中,我们将通过几个简单的步骤向您展示如何在Ubuntu 18.04计算机上安装和设置MongoDB!
步骤1:使用Apt在Ubuntu上安装MongoDB (Step 1: Install MongoDB on Ubuntu Using Apt)
Since the MongoDB package is available in Ubuntu’s official repositories, we can simply use apt to install MongoDB on our system.
由于MongoDB软件包在Ubuntu的官方存储库中可用,因此我们可以简单地使用apt在我们的系统上安装MongoDB。
But before that, update all system critical packages first.
但是在此之前,请先更新所有系统关键软件包。
sudo apt update
Now, install the MongoDB package using:
现在,使用以下命令安装MongoDB软件包:
sudo apt install mongodb
This will install the latest version of Mon