ubuntu installed MongoDB error
-
Why doesn't MongoDB install?
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list sudo apt-get update sudo apt-get install -y mongodb-org
Vds Ubuntu 22.04 -
@ye8 it looks like you have authentication enabled on the MongoDB instance but have specified an incorrect password during setup.
When you created the username and password for the NodeBB database did you specify
use nodebb
first ? Are you able to login to the MongoDB instance with the username and password you specified? -
On 22.04 you need to use
jammy
instead offocal
-
@PitaJ I read the source you provided and installed it. Thanks.
But then I can't move forward in the "mongo" database part.
Configure MongoDB General MongoDB administration is done through the MongoDB Shell mongo. A default installation of MongoDB listens on port 27017 and is accessible locally. Access the shell: mongo
Nothing happens when I type MONGO
-
@ye8 try use command
mongosh
-
test> > use admin Uncaught: SyntaxError: Unexpected token (1:0) > 1 | > use admin | ^ 2 |
"SyntaxError " i get the error .
edit : > use admin -- I stayed in step. -
@ye8 said in ubuntu installed MongoDB error:
enter command
use admin
without this symbol>
-
@brazzerstop you =
I think I've come to the end of the installation. I want final help from youEnable database authorization in the MongoDB configuration file /etc/mongod.conf by appending the following lines: security: authorization: enabled
"""/etc/mongod.conf """" How do I enter the command?
-
@ye8 said in ubuntu installed MongoDB error:
"""/etc/mongod.conf """" How do I enter the command?
Try this command to edit file mongod.conf
sudo nano /etc/mongod.conf
-
-
-
-
@ye8 it looks like you have authentication enabled on the MongoDB instance but have specified an incorrect password during setup.
When you created the username and password for the NodeBB database did you specify
use nodebb
first ? Are you able to login to the MongoDB instance with the username and password you specified? -
-
-