Authorization Security for Mongodb
Posted 庄泽波の博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Authorization Security for Mongodb相关的知识,希望对你有一定的参考价值。
To keep security for the mongodb server, we can create an authorized machanism.
db.createUser( { user: "user1", pwd: "passwd", roles:[{"role": "userAdminAnyDatabase", "db": "admin"}] } ) db.createUser( { user: "user2", pwd: "passwd", roles:[{"role": "readWrite", "db": "database"}] } )
以上是关于Authorization Security for Mongodb的主要内容,如果未能解决你的问题,请参考以下文章