gpt4 book ai didi

mongodb - mongos "bind_ip"和 "bind_ip_all"之间的区别

转载 作者:行者123 更新时间:2023-12-05 06:27:24 32 4
gpt4 key购买 nike

运行mongos时bind_ip和bind_ip_all有什么区别?

我知道您可以使用 bind_ip 指定一个 ips 列表,那么 bind_ip_all 有什么意义呢?

最佳答案

来自MongoDB官方文档

net.bindIpAll

If true, the mongos or mongod instance binds to all IPv4 addresses (i.e. 0.0.0.0). If mongos or mongod starts with net.ipv6 : true, net.bindIpAll also binds to all IPv6 addresses (i.e. ::).

mongos or mongod only supports IPv6 if started with net.ipv6 : true. Specifying net.bindIpAll alone does not enable IPv6 support.

NOTE

net.bindIp and net.bindIpAll are mutually exclusive. Specifying both options causes mongos or mongod to throw an error and terminate.

关于mongodb - mongos "bind_ip"和 "bind_ip_all"之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55348228/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com