Comments on How to Install and Configure MongoDB on CentOS 8

MongoDB is a NoSQL database that provides high performance, high availability, and automatic scaling. In this tutorial, I will guide you to install and configure MongoDB 4.4 (stable) on a CentOS 8 server. We will add and configure the administrator user for MongoDB and configure the authentication for MongoDB services.

1 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Dee Marcly

Thanks for this, it's a great tut. There are a few issues though:

If you have issues getting mongod to start for the first time on CentOS 8, check this SO answer out for a fix:

https://stackoverflow.com/a/53494635

 

"First, make sure mongod is not running already ps aux | grep mongod

If it's not, remove the file: rm /tmp/mongodb-27017.sock

Then try systemctl start mongod to start MongoDB again."

 

and, also VERY importantly:

```

security    authorization: "enabled"

```

should be:

 

```

security:    authorization: "enabled"

```ADD THAT SEMI COLON after "security"

OR THE mongod SERVICE WON'T START/RESTART!