How to listen only to localhost on MongoDB

后端 未结 4 866
一生所求
一生所求 2020-12-13 02:11

MongoDB Suggests that the easy way to handle security is to run it in a trusted environment, given that, \"in such a configuration, one must be sure only trusted machines ca

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 02:58

    As Andreas mentioned in a round-about way:

    mongod --bind_ip 127.0.0.1
    

提交回复
热议问题