This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
access from remote : | |
go to mongodb config `/etc/mongod.conf`, in `net` part, set `bindIP` to trusted IPs. | |
then restart service | |
also open mongodb port & restart firewall | |
------------------------------------------------ | |
1. login to mongodb with `mongo`, | |
2. use admin | |
3. add user with password | |
db.createUser({ | |
user: "user", |