I’ve written my Configuration File as below : ( configFile.yml ) . And I’ve corresponding folders as well in my IDE . And I’ve created my first user by taking admin database into account. ( user : raj , pwd : raj999 )
net:
port: 30000
bindIp: localhost
storage:
dbPath: data/db
systemLog:
destination: file
path: logs/logFile.log
security:
authorization: “enabled”
Now i run this following command in my terminal :
mongod -f configFile.yml
I can see mongod running as fork. And if i launch one more terminal with the following command i can view databases, collections.
mongo --host localhost:30000 --username raj --password --raj999
But If i launch this same command which is highlighted above in different machine (with mongoDB installed), im getting the error which is written in subject of this Topic.