update order of steps

This commit is contained in:
Lee 2023-06-28 12:45:47 +01:00
parent c7737f0441
commit 678c5722e5

@ -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.