mongo
use admin
db.addUser('pipi','123456',false) or db.createUser('pipi','123456',false)
sudo vim /etc/mongodb.conf
把auth前的注释去掉
sudo service mongodb restart
mongo
use admin
db.addUser('pipi','123456',false) or db.createUser('pipi','123456',false)
sudo vim /etc/mongodb.conf
把auth前的注释去掉
sudo service mongodb restart
本文标题:给Mongodb加密
本文链接:https://www.haomeiwen.com/subject/blsixxtx.html
网友评论