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

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.

主站蜘蛛池模板: 石首市| 富源县| 哈巴河县| 新邵县| 新河县| 丹巴县| 晴隆县| 剑川县| 绍兴市| 墨竹工卡县| 盖州市| 天津市| 丹东市| 兴山县| 锡林浩特市| 高陵县| 清苑县| 万全县| 克什克腾旗| 昌黎县| 普兰县| 内丘县| 岑溪市| 渑池县| 河间市| 五指山市| 天长市| 临夏市| 镇宁| 阜南县| 南岸区| 施秉县| 紫阳县| 新蔡县| 平舆县| 凭祥市| 大荔县| 汉川市| 东乡| 涿州市| 华阴市|