Installing on Ubuntu with AWS EC2
-
What is being denied? When you try to read the file? Did you try
sudo nano /etc/mongod.conf
? -
@yariplus Thanks, i dont use sudo.
But when try mongo -u your_username -p your_password --authenticationDatabase=admin it says login failed. but I've changed with the username and password that I have. So when try to setup nodebb it says cant connect to database -
-
@arranka the manual says exactly what to do:
Enable database authorization in the MongoDB configuration file /etc/mongod.conf
Means "edit the file"
by appending the following lines
Means "add the following lines to the end of the file"
Did you do that?
-
@arranka if you don't know how to edit files from the command line, you're going to have a bad time. Luckily, it's easy to learn with a simple web search.
-
@arranka putty connects to ubuntu through ssh. If you edit the file through putty, you're editing from ubuntu.