Tips setting new Mongo

0
278
views
  1. Edit /etc/mongod.conf
    If you want mongodb access from other ip, edit bindIp to bindIp: 0.0.0.0
  2. Go to mongomongo
    use admin
    db.createUser({user:'root', pwd: 'root', roles: ['root']})

LEAVE A REPLY

Please enter your name here
Please enter your comment!