官术网_书友最值得收藏!

Binding MongoDB process to a specific network interface and port

As you might have observed, after starting the MongoDB server, the mongod process binds to all interfaces which may not be suitable for all use cases. For example, if you are using MongoDB for development or you are running a single node instance on the same server as your application, you probably do not wish to expose MongoDB to the entire network. You might also have a server with multiple network interfaces and may wish to have MongoDB server listen to a specific network interface. In this recipe, we will see how to start MongoDB on a specific interface and port.

主站蜘蛛池模板: 老河口市| 榕江县| 普洱| 宜良县| 文昌市| 临颍县| 田林县| 仙游县| 林西县| 陇南市| 新乡县| 苗栗县| 鹤峰县| 大名县| 余干县| 青铜峡市| 张家港市| 定结县| 浙江省| 易门县| 阳曲县| 边坝县| 曲沃县| 富顺县| 论坛| 绥芬河市| 乐安县| 黄平县| 红河县| 衡阳县| 清水县| 新和县| 九龙坡区| 冕宁县| 仁化县| 宜章县| 神农架林区| 岳池县| 平湖市| 普洱| 江津市|