Mongo DB解决外网访问问题

在线教学:https://www.ixigua.com/7031128469127823909



00 I CONTROL  [initandlisten] **          Start the server with --bind_ip <address> to specify which IP 

2021-11-17T03:20:28.491+0800 I CONTROL  [initandlisten] **          addresses it should serve responses from, or with --bind_ip_all to

2021-11-17T03:20:28.491+0800 I CONTROL  [initandlisten] **          bind to all interfaces. If this behavior is desired, start the


这边以提示你可以用参数来指定IP或是所有,凡真我们是内网,只要你不开放27017 出来别人也黑不了你。


--bind_ip_all 这个表示所有可以连接


--bind_ip 192.168.1.102 可以指定IP可以连。


在这加一句


这样就可以,当然如果你是安装的,不是用绿色版,也可以改CONFIG文件。

Mongo解决外网访问问题

发表评论 已发布 1

还可以输入 800 个字
看不清?点击更换
 
 

dvka7001

谢谢分享啊!!!

2年前 回复 点赞

评论 打印