标签:bow admin bind 基础命令 RoCE OLE led pwd 数据库
1.mongo的基础命令db.createUser({user:‘nf2‘,pwd:‘123456‘,roles:[‘readWrite‘]})
############################################
2.mongo的配置文件
systemLog:
destination: file
logAppend: true
path: /home/mongo/log/mongo.log
storage:
dbPath: /home/mongo/data
journal:
enabled: true
processManagement:
fork: true
pidFilePath: /var/run/mongodb/mongod.pid
net:
port: 27017
bindIp: 192.168.1.209
security:
authorization: enabled
标签:bow admin bind 基础命令 RoCE OLE led pwd 数据库
原文地址:http://blog.51cto.com/wsxxsl/2175902