举例为nh_sc库添加用户nh_mongo,指定角色为dbAdmin:root@faith129:~#mongo 192.168.47.130 nh_sc:PRIMARY>use nh_sc switched to db nh_sc nh_sc:PRIMARY>db.createUser({user:"nh_mongo",pwd:"nh_mongo",roles:[{role:"dbAdmin",db:"nh_...
二,基于角色的访问控制(Role-Based Access Control)角色是授予User在指定资源上执行指定操作的权限,MongoDB官方手册对角色的定义是:A role grants privileges to perform the specified actions on resource.MongoDB为了方便管理员...
可以这样这个解决:[root@localhost thinktik]#dnf install policycoreutils-python-utils Last metadata expiration check:0:10:50 ago on Mon 27 Dec 2021 03:11:19 PM CST.SELinux放行后,我们继续重启即可.配置防火墙如果你需要服务被...