我有以下配置文件:
net:
bindIp: 127.0.0.1
port: 27017
storage:
dbPath: c:\mongoDATA\db
journal:
enabled: true
##systemLog:
## destination: file
## path: C:\mongoDATA\log\mongodb.log
## logAppend: true
这可行,但是当我尝试添加多个端口时,例如:
bindIp: 127.0.0.1, 192.168.10.115
or
bindIp: "127.0.0.1, 192.168.10.115"
or
bindIp: [127.0.0.1, 192.168.10.115]
逗号后有或没有空格,它没有。有人可以提供写语法吗?谢谢(使用 3.6 社区)