error:
rico@ubuntu:/var/lib/mongodb$ sudo service mongodb start
Failed to start mongodb.service: Unit mongodb.service is masked.
Solution:
rico@ubuntu:/var/lib/mongodb$ sudo chown -R mongodb:mongodb /var/lib/mongodb
rico@ubuntu:/var/lib/mongodb$ sudo systemctl start mongod
Similar Posts:
- [Solved] Mongodb Error: NETWORK [thread1] Failed to connect to 127.0.0.1:27017
- Raspberry pie: How to Solve Mongodb installation error
- Unable to start mongod after installing mongodb in Ubuntu
- No package mongodb-org available. [How to Solve]
- [Solved] MongoDB Start ERROR: child process failed, exited with error number
- [Solved] MySQL Error: Failed to start mysql.service: Unit mysql.service is masked.
- Mongodb Cannot Start: child process failed, exited with error number 100
- Mac Run MongoDB error: exception in initAndListen: NonExistentPath: Data directory /data/db not found., t…
- Ubuntu20.04 server Error: Failed to restart docker.service: Unit docker.service not found
- MongoDB Startup Error: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused