MongoDB在Ubuntu上的网络配置要点如下:
/etc/mongod.conf
net
bindIp
0.0.0.0
port
ufw
iptables
security.authorization: enabled