From 678c5722e584f4b1b50812fc3f9f1ac8d6fc7f62 Mon Sep 17 00:00:00 2001 From: Fascinated Date: Wed, 28 Jun 2023 12:45:47 +0100 Subject: [PATCH] update order of steps --- guides/ubuntu/pages/mongodb-install.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/guides/ubuntu/pages/mongodb-install.md b/guides/ubuntu/pages/mongodb-install.md index 177e5f4..2f4bc4d 100644 --- a/guides/ubuntu/pages/mongodb-install.md +++ b/guides/ubuntu/pages/mongodb-install.md @@ -105,7 +105,11 @@ You should see something like this: └─1234 /usr/bin/mongod --config /etc/mongod.conf ``` -## Securing MongoDB +## Finished + +You have successfully installed MongoDB on Ubuntu 22.04. For user creation and securing MongoDB, please see the next sections. + +## Optional: Securing MongoDB 1. Connect to MongoDB, so that we can create an admin user. Run the following command: @@ -152,7 +156,7 @@ security: 7. Save the file and exit the editor. You can do this by pressing `CTRL + X`, then `Y`, then `ENTER`. -## Adding a user / database +## Optional: Adding a user / database 1. Connect to MongoDB, so that we can create a user. Run the following command: @@ -217,7 +221,3 @@ sudo systemctl restart mongod ``` You should now be able to connect to MongoDB from a remote machine. - -## Finished - -You have successfully installed MongoDB on Ubuntu 22.04. You can now connect to MongoDB and start using it.