134

Mongodb之权限认证管理-玩味

 6 years ago
source link: http://blog.51cto.com/hld1992/2074619
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Mongodb默认是不开启认证的,对于数据库来说,这有很大的安全隐患,下面记录下生产中Mongodb权限认证的方法。一,环境阿里云:CentOSLinuxrelease7.4.1708(Core)Mongodb版本:3.6.2二,添加超级用户Mongodb的权限认证是基于数据库的,要想创建普通用户,必须要通过管理员来操作。>useadmin>db.createUser({user:"r

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK